Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/beardedd/public_html/home/comments.php on line 34
hOme.beardedDonkey - rsync --delete not working?
rsync --delete not working? 
If you issue an rsync command with the --delete option in it and you find it isn't removing non-existent source files from the target, when you google you will find a whole host of answers that say "don't use a wildcard character * on the end of the target path!"

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!

Comments 
Comments are not available for this entry.