Mauro Faccenda wrote: > On Friday 08 June 2007 12:54, Albert Hopkins wrote: > > On Fri, 2007-06-08 at 18:05 +0300, Aleksey Kunitskiy wrote: > > > Is it safe to move my linux system by using: > > > #>cp -rp /mnt/old_part /mnt/new_part > > > > 'cp -a' (or better rsync -a) is probably better than 'cp -rp' > > for that purpose. But what I usually do is 'tar -c ... | tar > > -x ...'. > > if you do tar in this way, is better to use > "tar -pc ... | tar -px ..."
The -p option only does something when extracting an archive, so that first -p is pointless. Better use 'tar' instead of 'cp -a', though, as it's much faster when copying many little files. cd /sourcedir && tar -cf - . | (cd /destdir; tar -xpvf -) Benno -- [EMAIL PROTECTED] mailing list