<div dir="ltr"><div>It didn't do this before. Why will it not create a directory? But wait! The directory already exists.</div><div><br></div><div>bmike1@c521 ~ $ rsync -aWq --progress --delete-before --compress-level=5 /home/bmike1/Documents /media/bmike1/"USB DISK"/</div><div>rsync: mkdir "/media/bmike1/USB DISK" failed: Permission denied (13)<br></div><div>rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]</div><div>bmike1@c521 ~ $ sudo mkdir "/media/bmike1/USB DISK"<br></div><div>[sudo] password for bmike1: </div><div>bmike1@c521 ~ $ rsync -aWq --progress --delete-before --compress-level=5 /home/bmike1/Documents /media/bmike1/"USB DISK"/</div><div>rsync: recv_generator: mkdir "/media/bmike1/USB DISK/Documents" failed: Permission denied (13)<br></div><div>*** Skipping any contents from this failed directory ***</div><div>rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]</div><div>bmike1@c521 ~ $ </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 2:33 AM, Brian Cluff <span dir="ltr"><<a href="mailto:brian@snaptek.com" target="_blank">brian@snaptek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In rsync, incremental recursion, refers to memory saving technique where it starts transferring files while only reading in a subset of the list of files that will be transferred.<br>
If you use --delete-before rsync will have to know the whole list of files so it will know what to delete, so naturally incremental recursion gets turned off because leaving it on conflicts with that you have asked it to do.<br>
<br>
Brian Cluff<span class=""><br>
<br>
On 09/24/2015 06:12 AM, Michael Havens wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Thanks for sharing with me about --delete-before. In my subsequent<br>
investigation into it's use I found the manpage says that using that<br>
option disables 'incremental recursion'. What is 'incremental<br>
recurssion'? I assume that I will still be able to backup lower level<br>
directories.<br>
<br>
<br>
Some options require rsync to know the full file list, so<br>
these<br>
options disable the incremental recursion mode. These<br>
include:<br>
--delete-before, --delete-after, --prune-empty-dirs,<br>
and<br>
--delay-updates. Because of this, the default delete<br>
mode when<br>
you specify --delete is now --delete-during when both<br>
ends of<br>
the connection are at least 3.0.0 (use --del or<br>
--delete-during<br>
to request this improved deletion mode explicitly).<br>
See also<br>
the --delete-delay option that is a better choice<br>
than using<br>
--delete-after.<br>
<br>
<br>
On Wed, Sep 23, 2015 at 10:11 PM, James Crawford <<a href="mailto:jrefl5@gmail.com" target="_blank">jrefl5@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:jrefl5@gmail.com" target="_blank">jrefl5@gmail.com</a>>> wrote:<br>
<br>
Mike,<br>
you can have rsync do the deletes prior to copying files over<br>
--delete-before receiver deletes before xfer, not<br>
during<br>
You can also delete the excluded files if you use some form of<br>
the exclude command,<br>
--delete-excluded also delete excluded files from<br>
dest dirs<br>
<br>
James C.<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br></span>
<mailto:<a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a>><span class=""><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
<br>
<br>
<br>
<br>
--<br>
:-)~MIKE~(-:<br>
<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8000001907349px">:-)~MIKE~(-:</span><br></div></div></div></div></div>
</div>