that's all well and good until you aren't using wildcards and --delete still isn't working!
what you do need on the end of the target path is a trailing slash / character for --delete to work!
so:
rsync -avzh --progress --delete -e 'ssh -p 31337 -i /home/user/keyfile.private' user@host.net:/home/user/backups /home/localuser/backups
will NOT do the --delete for you!
rsync -avzh --progress --delete -e 'ssh -p 31337 -i /home/user/keyfile.private' user@host.net:/home/user/backups/ /home/localuser/backups
WILL do the --delete for you!
[ view entry ] ( 343 views ) | [ 0 trackbacks ] | permalink | ( 3 / 458 )