[aklug] Re: rsync help

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Sun Feb 27 2011 - 14:04:51 AKST

On Sat, 26 Feb 2011, Scott A. Johnson 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. When I ran the
> rsync command I forgot to include a -t flag to preserve original file
> date/time. Is 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? As 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 :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.

I always use '-avz' which will do what you want. It's not well documented
but if a file appears newer on the destination and has the same size they do
do a checksum check before attempting a transfer. If you want to keep newer
files on the destination then add '-u'.

         --Arthur Corliss
           Live Free or Die
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Feb 27 14:04:59 2011

This archive was generated by hypermail 2.1.8 : Sun Feb 27 2011 - 14:04:59 AKST