I am trying to run: rsync --dry-run -avz --force --no-whole-file -e "ssh -C" --delete --bwlimit=35 \ --backup --exclude "*.backup-*" --exclude "*:*" '--suffix'=.backup-`date +%m%d` \ /mnt/unite-c/ heraudet@nanardon.zarb.org:~/unite-c/ But I get: rsync: on remote machine: --suffix-dels=.backup-0206: unknown option rsync error: syntax or usage error (code 1) at main.c(1441) [server=3.0.0pre5] This behavior appear with: - local machine: rsync version 2.6.6 protocol version 29 - remote machine: rsync version 3.0.0pre8 protocol version 30.PR16 (the message copy/paste before updating to latest rc). Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.samba.org/archive/rsync/attachments/20080206/7c063dcc/attachment.bin
On Wed, 2008-02-06 at 17:24 +0100, Olivier Thauvin wrote:> I am trying to run: > > rsync --dry-run -avz --force --no-whole-file -e "ssh -C" --delete --bwlimit=35 > \ > --backup --exclude "*.backup-*" --exclude "*:*" '--suffix'=.backup-`date > +%m%d` \ > /mnt/unite-c/ heraudet@nanardon.zarb.org:~/unite-c/ > > But I get: > rsync: on remote machine: --suffix-dels=.backup-0206: unknown option > rsync error: syntax or usage error (code 1) at main.c(1441) [server=3.0.0pre5] > > This behavior appear with: > - local machine: rsync version 2.6.6 protocol version 29 > - remote machine: rsync version 3.0.0pre8 protocol version 30.PR16The --suffix-dels option is specific to the backup-dir-dels patch. I can see how you would get the error if the local rsync contains this patch and the remote one doesn't. The patch has a compatibility problem: if you specify a non-default --suffix to the client, it passes both --suffix and --suffix-dels to the server, even though they have the same value. Get a local rsync that doesn't contain the patch and the problem should go away. Matt
Maybe Matching Threads
- Rsync to a Read Only file system
- Samba-3.0.0 packages for Mandrake 8.2-9.1
- DO NOT REPLY [Bug 5071] New: Enhancement Request - Customizable Connection Timeout Option
- [PATCH] Comment an obscure bit of code that sets the --suffix-dels default.
- Upgrade Samba 2.2.6 to 2.2.8 by novice