*- On 20 Dec, Ethan Benson wrote about "Re: Troubles with moving /var" > On 20/12/99 aphro wrote: > >> >>cp -a doesn't work on more obscure platforms like irix..there is a tar >>command..that acts like cp -a i saw it posted in a magazine(Maximum >>Linux) but i forgot what it was, if its linux its safe to use cp -a > > probably something like (cd / ; tar -cvpf - var) | (cd /home ; tar -xvpf -) > > quite a bit more obnoxious then cp -a for sure, but iirc it seemed to > deal with symlinks a bit better. there is a cpio way too but i'll > leave that to someone else. > > the key is when using tar use the -p switch !! :-) > >
cd /var; find . -mount | cpio -dumpv /home/var has done the trick for me several times. -- Brian Servis -- ------------------------------------------------------------------------ Mechanical Engineering | Never criticize anybody until you Purdue University | have walked a mile in their shoes, [EMAIL PROTECTED] | because by that time you will be a http://www.ecn.purdue.edu/~servis | mile away and have their shoes.