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

Re: sync-ing one dir. to another to make it identical.



On Tue, Sep 07, 2010 at 03:46:04PM +0700, Sthu Deus wrote:
> Good day.
> 
> I have two identical dir.s. W/ one of them I do anything I want, then I
> want to sync. them (the old will be identical to the new one).
 
> rsync -goprtv --delete-after /2/ /1

This commands seems normal to me. I think it would do what you want to do. But
please make sure that you run it from superuser - '-o' flag needs that
privileges.

Maybe you'll prefer -a (--archive) flag - it equals '-rlptgoD', which is your
flags plus "copy symlinks as symlinks" (-l) and "preserve device/special file"
(-D). Add '-v' - and you have exactly what you're looking for.

-- 
Regards,
Alexander Batischev

1024D/69093C81
F870 A381 B5F5 D2A1 1B35  4D63 A1A7 1C77 6909 3C81

Attachment: signature.asc
Description: Digital signature


Reply to: