On Fri, Aug 15, 2008 at 11:42:58PM +0300, Shachar Or wrote: > On Friday 15 August 2008 23:15, Andrei Popescu wrote: > > On Fri,15.Aug.08, 23:05:32, Shachar Or wrote: > > > > I like rsync. If you do it from a live CD it will copy only files > > > > actually on disk, not the ones created dynamically by e.g. udev. > > > > > > There's the -x option for this. It isn't specifically for this purpose > > > but it works. > > > > 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?
man rsync -x, --one-file-system don’t cross filesystem boundaries which means not to traverse any filesystem mounts, which is why it doesn't do /prox /sys /dev, they are all mounted filesystems (it will create the mount point though. The other affect is that it will not copy a mounted /home or any other mount filesystem if you start at / > > > > Regards, > > Andrei > > -- > Shachar Or | שחר אור > http://ox.freeallweb.org/ > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- "America better beware of a candidate who is willing to stretch reality in order to win points." - George W. Bush 09/18/2000 aboard his campaign plane
signature.asc
Description: Digital signature