<div dir="ltr">what about the -q option and the --delete option? i noticed that you didn't use them in your command '<span style="font-size:12.8px">rsync -auW /sort/directory /dest/directory/'.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 20, 2015 at 10:34 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 you are backing up locally you will want to do things a little different size as:<br>
<br>
rsync -auW /sort/directory /dest/directory/<br>
<br>
You will want to skip the -z option and the corresponding --compress-level option. Since you are doing copying everything locally that will only cause the machine to compress and immediately decompress every file that is copied wasting a ton of CPU/power.<br>
<br>
The other thing you will want to do is use the -W flag, that tells the machine to copy whole files instead of looking for what has changed between the documents. That way it can look at the time and/or size and if it's changed it will just copy the whole file. Without that flag it would read through both the source and destination file and then just copy the differences by writing a whole new file, so with the -W (whole file) flag the machine just reads/writes the file once and is a lot more efficient/faster.<br>
<br>
This can also be a good flag to set on fast networks since it can be a lot faster just to re-copy the whole file than it is to have the hard drive reading the file multiple times.<br>
<br>
The progress flag is very nice, but unless you are planning on closely monitoring your copy, I would skip it as I've found that it tends to slow down the transfer... or at least make it feel that way, like a watched pot never boils :)<br>
<br>
On your slash at end end question. A slash at the end tends to mean that you want to put the source files/dirs into that directory and a destination without a slash usually means that you want to rename your source file/directory to that destination file/dir name.<br>
<br>
Lastly the -h option gives you the sizes in easily readable terms or in other words, instead of just giving you the size in bytes it will give you size that look like 100K 2.4M 1.8G<br>
<br>
Brian Cluff<div><div class="h5"><br>
<br>
On 09/20/2015 05:34 AM, Michael Havens 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 know how to use rsync (sorta) to backup a disk and go between remote<br>
machines. With my current incarnation of the os I'm not so worried about<br>
backing up the whole system as I am a directory (and all of the<br>
directories under it) nor copying between remote machines. The directory<br>
is the 'Documents' directory. Would I:<br>
<br>
rsync -aquz --compress-level=5 /home/bmike1/Documents /media/bmike1/USB<br>
DISK/<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>
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>