On Saturday 05 July 2003 09:13, Zack Gilburd wrote: > On Friday 04 July 2003 04:14 pm, Chris Bare wrote: > > > `rsync -rlopg --progress --exclude=3D/dev > > > --exclude=3D/mnt/newdrve /=20 /mnt/newdrive` would be how I would > > > do it. That command will preserve=20 permissions. > > > > Thanks for the suggestion. Someone else suggested I boot from the > > install CD, so I combined your suggestions and was pleasantly > > surprised at the ease with which this worked. > > > > I booted from the CD, partitioned and mounted the new drive as I > > wanted, mounted the old drive, then did: > > > > rsync -a --progress /old/ /new > > > > Then I switched cables so the old drive was now hda, booted from > > the CD and ran grub on hd0. It booted right up from the new drive > > after that. > > > > The thing I like about gentoo is I really feel like I understand > > what is going on, so I'm able to do things like this which I would > > never dream of with Red Hat or Mandrake. > > Heh.... You're lucky, just -a won't preserve file permissions. :P
But it does. From man rsync: -a, --archive archive mode, equivalent to -rlptgoD -r, --recursive recurse into directories -l, --links copy symlinks as symlinks -p, --perms preserve permissions -o, --owner preserve owner (root only) -g, --group preserve group -D, --devices preserve devices (root only) -t, --times preserve times -- [EMAIL PROTECTED] mailing list