On 07/11/2014 12:58 PM, ToddAndMargo wrote:
Hi All,

I have a bash script for synchronizing a flashing drive (target)
with my hard drive (source) I take to customer sites (with a read
only switch so I don't spread viruses).

I currently "rsync" 11 different directories.  Each sync line
looks like this:

rsync -rv --delete $MyCDsSource/Linux $MyCDsTarget/.; sync; sync

Problem: it is slow -- takes three hours.  To help the
speed issue, I upgraded from USB 2 to USB 3.  Backup went
from 3 hr-15 min to 3 hr-5 min.  It is almost faster
to wipe the stick and rewrite it.

Anyone  know of a way to speed up rsync?

Many thanks,
-T



>
> I wiped the stick (set all the charges to zero) and started over.
> I am using
>
> rsync -rv --delete --modify-window=1 --times --inplace \
>     $MyCDsSource/Linux $MyCDsTarget/.; sync; sync
>
> I will have results in a few hours.
>
> Then I am going to do it again with no changes to
> see change happens.
>
>


Uh, guys.  Something is weird.

I zero'ed out the stick
   dd bs=4096  if=/dev/zero of=/sdc

and reformatted to one primary partition of type
"c" (W95 FAT32).

Ran a full sync with
rsync -rv --delete --modify-window=1 --times --inplace \
     $MyCDsSource/Linux $MyCDsTarget/.; sync; sync
9 hrs - 9 min

They I reran the sync.  Less than one second.
Did it again to make sure.  Again, less than one
second again.

Moved two files and added one.  All changes were found.
Again, less than a second.

Wow.  Can this really be correct?

-T

Reply via email to