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
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
> 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
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:
>> 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
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
>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
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
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.
--
~
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
10 matches
Mail list logo