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

Re: Upgrading Hard Drives



On Saturday 16 August 2008 00:45, Tod Detre wrote:
> >> AFAIU -x will prevent rsync from touching /proc, /sys and /dev, but you
> >> will need the directories themselves to be present on the new root
> >> partition, so I think it is better to omit -x *if* the system you want
> >> to clone is *not* running.
> >
> > But wait - doesn't it copy the directories themselves, aka the mount
> > points?
>
> When copying systems with rsync I tend to use --exclude to prevent
> /proc, /sys, etc. that way the mount points don't even need to be the
> same on the target location. For example system a could have everything
> in one / partition where system b has separate /boot, /usr, etc. if you
> do the --exclude syntax right it'll even create the base dir and just
> exclude everything under it.

Going in that direction, one could use the -F option and put an /.rsync-filter 
instead of the -x option.
>
>
> Regards,
> Tod Detre
>
> --
> Pantek, Inc. - http://www.pantek.com/ - info@pantek.com
> +1-877-LINUX-FIX - Expert Open Source Technical Support

-- 
Shachar Or | שחר אור
http://ox.freeallweb.org/


Reply to: