On 2010-06-29 16:29, Paul Slootman wrote:
On Tue 29 Jun 2010, Filipus Klutiero wrote:
Trying to use --delete with a rsync 3.0.3 receiver resulted in this:

$ rsync -r -n -t -v --progress --delete /etc/
r...@andrea:/mnt/backup/vinci/etc/
r...@andrea's password:
sending incremental file list
rsync: opendir "/etc/atheme" failed: Permission denied (13)
FATAL I/O ERROR: dying to avoid a --delete-during issue with a
pre-3.0.7 receiver.
rsync error: requested action not supported (code 4) at
flist.c(1795) [sender=3.0.7]
chea...@vinci:/etc/apache2$

--delete-during was, as you can see, not requested.
 From the manpage:

     ...
     Some options require rsync to know the full file list, so  these
     options  disable the incremental recursion mode.  These include:
     --delete-before,   --delete-after,    --prune-empty-dirs,    and
     --delay-updates.   Because of this, the default delete mode when
                                         ^^^^^^^^^^^^^^^^^^^^^^^
     you specify --delete is now --delete-during when  both  ends  of
                          ^^^^^^^^^^^^^^^^^^^^^^
     the  connection are at least 3.0.0 (use --del or --delete-during
     to request this improved deletion mode  explicitly).   See  also
     the  --delete-delay  option  that  is a better choice than using
     --delete-after.


Aha, so there is more documentation about options than the OPTIONS SUMMARY section... very nice to notice!

I guess in this case the issue is the option summary saying that --delete-before is the default - which is generally not the case. Perhaps the parenthesis should simply be removed, since simply moving it to --delete-during would not be exact neither.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to