[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can rsync correct dates?



On Mon, Sep 3, 2012 at 3:10 AM, lee <lee@yun.yagibdah.de> wrote:
>> So, how do I compose such a command rsync plus find, to achieve this?
>
> You could
>
>
> 1.) create a file with a list of such files with find and use the
>     "--exclude-from=" of rsync to exclude them, or
>
> 2.) you could make another backup of the modified files, restore
>     everything and then restore the modified files from the other
>     backup.
>
>
> I'd go for 2.) because I'd make another backup of the modified files
> first anyway.
>

Hi Lee,

Good suggestion to make another backup! I'll do it, but then, I'm
trying to play with this command:

$ find . -daystart -mtime -21 -printf "%f\n" | rsync -atI --progress
/media/S2/home/beco/ . -ni --exclude-from=-

But I'm not sure about the options to rsync. Do I need the capital I?
and also -t?

The files are exactly the same but for the excluded list. So I really
just need to update the dates.

Thanks,
Beco




-- 
Dr Beco

"I refuse to join any club that would have me as a member." (Groucho Marx)


Reply to: