[aklug] Re: rsync help

From: Josh Rhoades <kaiden11@gmail.com>
Date: Sun Feb 27 2011 - 00:28:14 AKST

Just moving files around on my hard drive, I'm finding that if I do this:

rsync -vru src_dir/ dest_dir/

It'll have the undesired effect of resetting all the timestamps to now.

If I then do this:

rsync -vrtc src_dir/ dest_dir/

It doesn't re-copy the files, but instead updates the timestamps (as
-c is supposedly using checksums only to determine updates).

This on rsync version 2.6.9. By no means am I an rsync guru. I'd, um,
find a way to verify this first on your own systems. Mileage may vary.
:)

On Sat, Feb 26, 2011 at 11:45 PM, Scott A. Johnson
<scott.a.johnson@gmail.com> wrote:
> I just spent the last several days transferring 3,000 files over a
> slow link and perhaps made a mistake I'd like to fix. =A0When I ran the
> rsync command I forgot to include a -t flag to preserve original file
> date/time. =A0Is there anyway to re-run rsync to have it just go through
> and update the date/time on the 3,000 files without actually
> transferring the file data again? =A0As I said, it took several days so
> I'd like to save that time and frankly the source is a degraded raid
> array that I'm trying to move everything off of before it fails, so I
> really don't want to stress the girl anymore than I have to =A0:P
> Ultimately it's not the end of the world as these files were the bulk
> of what was on the array so if all I have to put up with is some
> changed dates, not the end of the world.
>
> If I can't fix this with rsync, I'm also open to other ideas/suggestions.
>
> Thanks!
>
> --
> Scott A. Johnson
> scott.a.johnson@gmail.com
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Feb 27 00:29:32 2011

This archive was generated by hypermail 2.1.8 : Sun Feb 27 2011 - 00:29:32 AKST