feat: Add multi source and multi target support

This commit is contained in:
Dragan Filipovic
2023-01-03 02:49:54 +01:00
parent 98ee38d52e
commit 73a65ec97c
9 changed files with 227 additions and 70 deletions

View File

@@ -55,7 +55,7 @@ const rsyncCli = async ({
privateKeyPath, args, sshCmdArgs
}) => {
console.log(`[Rsync] Starting Rsync Action: ${source} to ${rsyncServer}`);
if (exclude) console.log(`[Rsync] excluding folders ${exclude}`);
if (exclude && exclude.length > 0) console.log(`[Rsync] excluding folders ${exclude}`);
const defaultOptions = {
ssh: true,