samba-bugs at samba.org
2012-Jun-03 08:00 UTC
[Bug 8973] New: --delete or similar (--delete-after / --delete-before) does not work if used after --rsh
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.
samba-bugs at samba.org
2012-Jun-16 17:13 UTC
[Bug 8973] --delete or similar (--delete-after / --delete-before) does not work if used after --rsh
https://bugzilla.samba.org/show_bug.cgi?id=8973
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Wayne Davison <wayned at samba.org> 2012-06-16
17:13:10 UTC ---
The -e option is an alias for --rsh, so your first command says your
remote-shell command is "--delete", and it is then changed by the
repeated
--rsh option. Drop the "e" from the "-avzie" list, and
you'll be fine.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Apparently Analagous Threads
- configure --with-rsh=CMD and default blocking-IO support
- [Bug 14163] New: RSYNC_SSL_PORT env should be set for invocation of --rsh command
- Rsync param parsing using --rsh broken? (was: no subject)
- [Bug 10557] New: .ssh/config settings are incompletely applied with -e or --rsh
- [Bug 1924] unable to rsync between a PC with cygwin and a unix machine using rsh