https://bugzilla.samba.org/show_bug.cgi?id=8973
Summary: --delete or similar (--delete-after / --delete-before)
does not work if used after --rsh
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Testing Environments
rsync -avzie --delete --rsh="ssh -p 1234 -i /home/username/.ssh/user-rsync-key"
[email protected]:/var/www/ /media/Files/Backups/rsync/www/
This will copy, and update files as expected, however will not delete the files
on the local machine if they no longer exist on the remote.
However, by moving the --delete to after the --rsh command, local files are
deleted as expected...
rsync -avzie --rsh="ssh -p 1234 -i /home/username/.ssh/user-rsync-key" --delete
[email protected]:/var/www/ /media/Files/Backups/rsync/www/
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html