[Bug 8973] New: --delete or similar (--delete-after / --delete-before) does not work if used after --rsh
samba-bugs at samba.org
samba-bugs at samba.org
Sun Jun 3 02:00:55 MDT 2012
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: wayned at samba.org
ReportedBy: atajsic at gmail.com
QAContact: rsync-qa at samba.org
Testing Environments
rsync -avzie --delete --rsh="ssh -p 1234 -i /home/username/.ssh/user-rsync-key"
rsync at example.com:/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
rsync at example.com:/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.
More information about the rsync
mailing list