Re: Problem ftpsync with rysnc 3.1.1
Philip Hands <[email protected]>
| Newsgroups | gmane.linux.debian.user.mirrors |
|---|---|
| Message-ID | <[email protected]> |
Budiwijaya <[email protected]> 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
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE3/FBWs4yJ/zyBwfW0EujoAEl1cAFAliHBzoACgkQ0EujoAEl 1cBXVxAAq5aJPzel6WrhhkR+NQ9afpuq0Mpz1XwkQe0LvjzkvrKVAx8Ab1teuF6G nJyh9HhUG1M+i9CmmNqrVoy+bOBwVXaWHXt3KPaQ/Hcz03P7wfth1Q9M0JMmHP0a k7/cWRtOixdrDk5RKfhPtzW/4YihP8WkzIdRBG1fKRo/6dVHw7GRG66Hwu6vx7Jp +6cANMl9ER6GJT38H2DAUDOYH6ZQMhrjWssyP5qVyR8ghazFtPCRMgWXF1earYaV 3MC8JJ64Wxx4fieKU9egHcLHN4y/RyPNqLf9F23xEaQdp1kiyWC0XnzBO8HxhqA7 EGLrarzsQFuC3Xm9HYGOiuEfPO+OHUf0AjPa8lLptIBzddETuGXWawLsVKGEQrT8 Cdyt1I64Ci8aE2pVLUjiojtFCcuO14+61HeYAWp3IupwNsAIlH3BhBxoVAbYaF9q 9zH7ia76Osh+qafy1uBcWVXqdpR7RawFtcRqgxyjncg2X6yVbrsFeAmwMygW5GDm qHp9zwwD/a0KVuAqmtPbWLyuslsiF0Mux/IPiAsjjJ1NQ39lb4Ilwn66aCEoUcG5 dsx2cihyW+M5bvEXtXYd3hbaEfea2MFDoyNw8bvXGfsUK6OZLeZ3EjGg508Ki6DT +LDNj40hai3yPJqo2puRhv1fzuS3O+R41bB2617ptks2vgysb0M= =Yjhv -----END PGP SIGNATURE-----