[PLUG] Moving in to the new partitions

Fedor Pikus fedorp at wv.mentorg.com
Sun Dec 28 12:41:01 UTC 2003


On Sat, 27 Dec 2003, Steve Adams wrote:
> Evan Heidtmann wrote:
>
> > Thanks to everyone!  I managed to get my hands on parted and a
> > bootdisk and now have new partitions waiting to become /tmp, /var,
> > /usr, and /home.  I am now looking at how to copy all the files in the
> > current /var, /usr, and /home to their new partitions.  I tried cp,
> > but that destroys all the permissions and ownerships.  I can restore
> > these by hand, but is there a better tool?
> Take a look at rsync. Although I don't use it in that capacity I hear
> that it's pretty good at making local mirrors.
cp -a preserve permissions and ownership, so does tar:
cd /usr; tar cf - . | ( cd /new/usr; tar xf - )

-- 
                                  Fedor G. Pikus
Mentor Graphics Corporation         | Phone: (503) 685-4857
8405 SW Boeckman Road               | FAX:   (503) 685-1239
Wilsonville, Oregon 97070           | http://www.pikus.net/~pikus/




More information about the PLUG mailing list