1 |
Mauro Faccenda wrote: |
2 |
> On Friday 08 June 2007 12:54, Albert Hopkins wrote: |
3 |
> > On Fri, 2007-06-08 at 18:05 +0300, Aleksey Kunitskiy wrote: |
4 |
> > > Is it safe to move my linux system by using: |
5 |
> > > #>cp -rp /mnt/old_part /mnt/new_part |
6 |
> > |
7 |
> > 'cp -a' (or better rsync -a) is probably better than 'cp -rp' |
8 |
> > for that purpose. But what I usually do is 'tar -c ... | tar |
9 |
> > -x ...'. |
10 |
> |
11 |
> if you do tar in this way, is better to use |
12 |
> "tar -pc ... | tar -px ..." |
13 |
|
14 |
The -p option only does something when extracting an archive, so |
15 |
that first -p is pointless. Better use 'tar' instead of 'cp -a', |
16 |
though, as it's much faster when copying many little files. |
17 |
|
18 |
cd /sourcedir && tar -cf - . | (cd /destdir; tar -xpvf -) |
19 |
|
20 |
Benno |
21 |
-- |
22 |
gentoo-user@g.o mailing list |