Re: Moving partition
Alexander Kushnirenko <firstname.lastname@example.org> writes:
> > Symbolic links are just names of files. If the path of the
> > destination stays the same (/usr is still /usr, even though the
> > mount table is different) you shouldn't have problems just using
> > cp. But I haven't done this before in truth.
> I'm not sure about that. If I got it right plain cp will copy the
> file, it will not create a symobolic link. So your symbolic link
> structure will be ruined. tar on the other hand preserves it.
If you use the -d (preserve links), -p (preserve file attributes) and
-R (copy directories recursively) you should have no problems with cp.
The short cut for all three parameters is -a.