Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Best way to copy /* ?
Date: Tue, 28 Dec 2010 23:10:23
Message-Id: 201012290008.55059.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Best way to copy /* ? by Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
1 Joerg Schilling writes:
2
3 > Neil Bothwick <neil@××××××××××.uk> wrote:
4 > > On Tue, 28 Dec 2010 00:02:31 -0500, Mike Edenfield wrote:
5 > > > tar -C /old cpf - | tar -C /new xvpf -
6 > > >
7 > > > You'll probably not want to do the entire / in a single go,
8 > > > since /proc, /sys, and /dev (at least) should be skipped.
9 > >
10 > > Which can be done with the -l option.
11 >
12 > You are mistaken: The -l option causes tar to warn if not all hars links
13 > to a file could not be resolved.
14
15 We're one the Gentoo Linux list here and so we're talking about GNU tar,
16 where -l is a synonym for --one-file-system, Neil is right. Original Unix
17 tar works like you say, but we don't use it here.
18
19 Wonko