<div dir="ltr">Glad you remembered why I added --delete-before . I forgot.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 2, 2016 at 1:37 PM, 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">If I remember right, you added the --delete-before option because you were backing up to a flash drive and without deleting deleted files prior to starting the copy you were running out of space causing your backup to fail.<br>
<br>
The only real difference that you will see between delete-before and delete-during is where rsync has to do a complete read through the whole file structure. If you are using delete-before, rsync HAS to read through the whole file structure so that it can determine which files to delete before it starts it's copy. If you use --delete-during, which I believe is the default, rsync CAN, depending on other options, start copying right away. That can be a huge time saver. On some of the systems I backup were are so any files that it can take a half hour before the copy even starts if rsync can't start copying immediately.<br>
My guess would be that on your system with a single user being backed up that using --delete-before doesn't cause much more than a few seconds extra to pass before the copy starts.<br>
If you're no longer using a flash drive to backup and have plenty of space now, you might as well take the --delete-before off and leave rsync to it's default behavior.<br>
<br>
Brian Cluff<div><div class="h5"><br>
<br>
On 02/02/2016 05:59 AM, Michael wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I run this command:<br>
<br>
rsync -aWuq --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk<br>
<br>
I was wondering about the --delete-before and was thinking it should be<br>
--delete-during and was hoping to get all of your opinions on the matter.<br>
--<br>
:-)~MIKE~(-:<br>
<br>
<br></div></div>
---------------------------------------------------<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>
</blockquote>
<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>
</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>