Hi, I'm using the script below and it keeps giving me the following error:
Unexpected remote arg: backup@fqdn:/data/dir/ rsync error: syntax or usage error (code 1) at main.c(1214) [sender=3.0.9] It looks like something is going wrong with my escaping, because when I remove the --rsync-path line everything works fine. It also works fine if I echo the last line of the script and copy and paste it in my shell (KSH). I've tried all kinds of different escaping and nothing seems to work. Any ideas on what I'm doing wrong? Kind regards, Martijn Rijkeboer ------------------------ #!/bin/sh DATADIR="/data" TODAY=`/bin/date +%Y%m%d` RSYNC_CMD="/usr/local/bin/rsync -v -n \ --rsync-path='rsync sudo' \ --rsh=ssh \ --archive --one-file-system --compress --hard-links --numeric-ids \ --human-readable --delete-after --backup --backup-dir=deleted/$TODAY \ --exclude=deleted" $RSYNC_CMD backup@fqdn:$DATADIR/dir/ $DATADIR/dir ------------------------