Re: Moving /usr directory?

1998-04-22 Thread Dave Ihnat
Ed Ewing wrote: > Is there a way to move the directory intact or do the links need to be > recreated? You'll get a lot of tar solutions; another is (assuming the destination is /usrnew): cd /usr find . -print | cpio -pdmv /usrnew The only changes I might suggest are to leave of

Re: Moving /usr directory?

1998-04-22 Thread Eric L. Green <[EMAIL PROTECTED]>
On Wed, 22 Apr 1998, Leung Yau Wai wrote: > On Wed, 22 Apr 1998, Matt Housh wrote: > > cp -a (equivalent to cp -dpR, iirc) should preserve links, but if > > it doesn't work, (cd /source;tar cf - ./)|(cd /dest;tar xvf -) might do as > > well. > But > (cd /source;tar cf - ./)|(cd /de

Re: Moving /usr directory?

1998-04-22 Thread Brian
> Is there a way to move the directory intact or do the links need to be > recreated? > I think cp -a will do what you want. Check the man page to make sure. -- Brian Eith UW-Madison Computer Sciences [EMA

RE: Moving /usr directory?

1998-04-22 Thread Matt Housh
How picky :) --- Matt Housh email: [EMAIL PROTECTED] MicroComputer SpecialistUniversity of Tulsa "Pardon me, stewardess. I speak Jive." On Wed, 22 Apr 1998 [EMAIL PROTECTED] wrote:

RE: Moving /usr directory?

1998-04-22 Thread David . LANDGREN
>> it doesn't work, (cd /source;tar cf - ./)|(cd /dest;tar xvf -) might do as > >> well. > Work.. > > But > (cd /source;tar cf - ./)|(cd /dest;tar xvpf -) should be better And > (cd /source && tar cf - ./)|(cd /dest && tar xvpf -) > will be even better still, like I said

Re: Moving /usr directory?

1998-04-22 Thread Leung Yau Wai
On Wed, 22 Apr 1998, Matt Housh wrote: > > cp -a (equivalent to cp -dpR, iirc) should preserve links, but if > it doesn't work, (cd /source;tar cf - ./)|(cd /dest;tar xvf -) might do as > well. Work.. But (cd /source;tar cf - ./)|(cd /dest;tar xvpf -) should be bet

RE: Moving /usr directory?

1998-04-22 Thread David . LANDGREN
>Trying to move /usr directory to a second hard drive. When doing cp -r -p * >am receiving errors that: "cannot copy cyclic symbolic link". cp gets a bit lost by symlinks. Or maybe it is me who gets confused by cp. Basically, I shun using cp -r. Try something like: (cd /usr && tar cf - .) | (cd

Re: Moving /usr directory?

1998-04-22 Thread Matt Housh
cp -a (equivalent to cp -dpR, iirc) should preserve links, but if it doesn't work, (cd /source;tar cf - ./)|(cd /dest;tar xvf -) might do as well. --- Matt Housh email: [EMAIL PROTECTED] MicroComputer Special

Re: Moving /usr directory?

1998-04-22 Thread Keith Schoenefeld
Ed Ewing wrote: > > Trying to move /usr directory to a second hard drive. When doing cp -r -p * > am receiving errors that: "cannot copy cyclic symbolic link". > > Is there a way to move the directory intact or do the links need to be > recreated? > I believe cp -a works. -- ~

Moving /usr directory?

1998-04-22 Thread Ed Ewing
Trying to move /usr directory to a second hard drive. When doing cp -r -p * am receiving errors that: "cannot copy cyclic symbolic link". Is there a way to move the directory intact or do the links need to be recreated? Thanks for any help. -- PLEASE read the Red Hat FAQ, Tips, Errata and t