U know what works best? #cd /from_dir #tar cvf - . | (cd /path/to/new/dir; tar xvpf -)
This will preserve everything as is!! Including links and dates! Well, everything. Explanation:: tar c=create v=verbose f=="device" "." ==from here "|" (pipe) sends out of the section to second section "(....)" opens a subshell; then changes dir to new dir, and copies, using tar, all the input from "-" to standdard "-" p==preserve (or could use --same-permissions) All this is in tar manpage. _Thanks Richard Mollel --- "J. Grant" <[EMAIL PROTECTED]> wrote: > Sounds like you want cp -dpr, info cp gives you more > details. > > cheers > > JH > > on the 19/03/03 12:28, Christopher Joseph wrote: > > First apologies. I have had some problems getting > the search function on > > the mail archives to function properly this > morning so I have not been > > able to trawl for past questions regarding the > same topic properly. > > > > The problem: > > > > I have bought a new 80 Gb ATA133 Hard disk for my > desktop running > > mandrake linux. I would like to migrate some of > the partions on the > > existing disk to the new disk and then 'grow' the > remaining partitions > > to fill the original disk. > > > > I tried moving /home, /usr and /var on to the new > disk by simply using > > SU on konqueror and simply copying the files > accross. I them altered > > /etc/fstab to mount the new partitions at reboot. > > > > BUT - the copy process changed a lot of > permissions and all kinds of > > things have errored > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > ===== __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
