On Tuesday 28 December 2010 16:26:16 Joerg Schilling wrote:
> Neil Bothwick <n...@digimed.co.uk> wrote:
> > On Tue, 28 Dec 2010 00:02:31 -0500, Mike Edenfield wrote:
> > > tar -C /old cpf - | tar -C /new xvpf -
> > > 
> > > You'll probably not want to do the entire / in a single go,
> > > since /proc, /sys, and /dev (at least) should be skipped.
> > 
> > Which can be done with the -l option.
> 
> You are mistaken: The -l option causes tar to warn if not all hars links to
> a file could not be resolved.

I often use this with a LiveCD:

cd /home
tar --exclude File1 --exclude Dir1 -lcpvSf - . | (cd /mnt/new_partition; tar -
xpvf - )

or something like this with star:

star -copy -p -xdot -xattr -H=exustar -sparse -M -C /home . /mnt/new_partition

(You can use -V -pat=File1 to exclude files or directories with star, use the 
-M option to avoid following mount points).
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to