<div dir="ltr">I just stuck the drive in and let it automount. I suppose I could sudo rsync but why didn't I have to before the --delete-before was added?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 10:17 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">Did you mount the drive as a different user than bmike1?<br>
<br>
Brian Cluff<span class=""><br>
<br>
On 09/25/2015 05: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="">
It didn't do this before. Why will it not create a directory? But wait!<br>
The directory already exists.<br>
<br>
bmike1@c521 ~ $ rsync -aWq --progress --delete-before --compress-level=5<br>
/home/bmike1/Documents /media/bmike1/"USB DISK"/<br>
rsync: mkdir "/media/bmike1/USB DISK" failed: Permission denied (13)<br>
rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]<br>
bmike1@c521 ~ $ sudo mkdir "/media/bmike1/USB DISK"<br>
[sudo] password for bmike1:<br>
bmike1@c521 ~ $ rsync -aWq --progress --delete-before --compress-level=5<br>
/home/bmike1/Documents /media/bmike1/"USB DISK"/<br>
rsync: recv_generator: mkdir "/media/bmike1/USB DISK/Documents" failed:<br>
Permission denied (13)<br>
*** Skipping any contents from this failed directory ***<br>
rsync error: some files/attrs were not transferred (see previous errors)<br>
(code 23) at main.c(1183) [sender=3.1.0]<br>
bmike1@c521 ~ $<br>
<br>
<br>
On Fri, Sep 25, 2015 at 2:33 AM, Brian Cluff <<a href="mailto:brian@snaptek.com" target="_blank">brian@snaptek.com</a><br></span><div><div class="h5">
<mailto:<a href="mailto:brian@snaptek.com" target="_blank">brian@snaptek.com</a>>> wrote:<br>
<br>
In rsync, incremental recursion, refers to memory saving technique<br>
where it starts transferring files while only reading in a subset of<br>
the list of files that will be transferred.<br>
If you use --delete-before rsync will have to know the whole list of<br>
files so it will know what to delete, so naturally incremental<br>
recursion gets turned off because leaving it on conflicts with that<br>
you have asked it to do.<br>
<br>
Brian Cluff<br>
<br>
On 09/24/2015 06:12 AM, Michael Havens wrote:<br>
<br>
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<br>
level<br>
directories.<br>
<br>
<br>
Some options require rsync to know the full file<br>
list, so<br>
these<br>
options disable the incremental recursion<br>
mode. These<br>
include:<br>
--delete-before, --delete-after,<br>
--prune-empty-dirs,<br>
and<br>
--delay-updates. Because of this, the default<br>
delete<br>
mode when<br>
you specify --delete is now --delete-during<br>
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<br>
choice<br>
than using<br>
--delete-after.<br>
<br>
<br>
On Wed, Sep 23, 2015 at 10:11 PM, James Crawford<br>
<<a href="mailto:jrefl5@gmail.com" target="_blank">jrefl5@gmail.com</a> <mailto:<a href="mailto:jrefl5@gmail.com" target="_blank">jrefl5@gmail.com</a>><br></div></div><span class="">
<mailto:<a href="mailto:jrefl5@gmail.com" target="_blank">jrefl5@gmail.com</a> <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<br>
files over<br>
--delete-before receiver deletes before<br>
xfer, not<br>
during<br>
You can also delete the excluded files if you use some<br>
form of<br>
the exclude command,<br>
--delete-excluded also delete excluded files<br>
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>
<mailto:<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><div><div class="h5"><br>
<mailto:<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>
<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>
<mailto:<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>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
<mailto:<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>
<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>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
---------------------------------------------------<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>