Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Best way to copy /* ?
Date: Tue, 28 Dec 2010 18:43:50
Message-Id: 201012281842.13216.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Best way to copy /* ? by Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
1 On Tuesday 28 December 2010 16:26:16 Joerg Schilling wrote:
2 > Neil Bothwick <neil@××××××××××.uk> wrote:
3 > > On Tue, 28 Dec 2010 00:02:31 -0500, Mike Edenfield wrote:
4 > > > tar -C /old cpf - | tar -C /new xvpf -
5 > > >
6 > > > You'll probably not want to do the entire / in a single go,
7 > > > since /proc, /sys, and /dev (at least) should be skipped.
8 > >
9 > > Which can be done with the -l option.
10 >
11 > You are mistaken: The -l option causes tar to warn if not all hars links to
12 > a file could not be resolved.
13
14 I often use this with a LiveCD:
15
16 cd /home
17 tar --exclude File1 --exclude Dir1 -lcpvSf - . | (cd /mnt/new_partition; tar -
18 xpvf - )
19
20 or something like this with star:
21
22 star -copy -p -xdot -xattr -H=exustar -sparse -M -C /home . /mnt/new_partition
23
24 (You can use -V -pat=File1 to exclude files or directories with star, use the
25 -M option to avoid following mount points).
26 --
27 Regards,
28 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Best way to copy /* ? Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)