Budiwijaya <bbuuddiiww@gmail.com> writes: > Hi, > > I have two internal mirror, one mirror are working (using rsync > 3.1.0-ubuntu0.2) and the other are using rsync 3.1.1-3ubuntu1. > > The latter are always throws this error: > rsync: You may not combine multiple --delete-WHEN options. > rsync error: syntax or usage error (code 1) at main.c(1572) [client=3.1.1] > > Tried to find "--delete-WHEN" in the ftpsync, but none found. > Anyone experience the same? The WHEN is standing in for the times that you might want the deletions to happen. Look in the script for '--delete-' and 'RSYNC_DELETE_METHOD' If you've added a --delete-... option in your local settings then you are probably ending up with both --delete-after and whatever you have set, thus giving you the error. You could try inserting: set -x just before the where rsync is invoked (the line numbers shown here): ~archvsync$ grep -n ' ${RSYNC}' bin/ftpsync 658: ${RSYNC} ${RSYNC_SSL_OPTIONS} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS1} ${EXCLUDE} ${SOURCE_EXCLUDE} \ 733: ${RSYNC} ${RSYNC_SSL_OPTIONS} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS2} ${EXCLUDE} ${SOURCE_EXCLUDE} \ which will tell you what options you're actually providing to rsync that give rise to this error. Cheers, Phil. -- |)| Philip Hands [+44 (0)20 8530 9560] HANDS.COM Ltd. |-| http://www.hands.com/ http://ftp.uk.debian.org/ |(| Hugo-Klemm-Strasse 34, 21075 Hamburg, GERMANY
Attachment:
signature.asc
Description: PGP signature