Gentoo Archives: gentoo-user

From: Mike Kazantsev <mk.fraggod@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] fast recursive local copy
Date: Fri, 14 Aug 2009 07:33:43
Message-Id: 20090814133328.7fece310@malediction
In Reply to: [gentoo-user] [OT] fast recursive local copy by meino.cramer@gmx.de
1 On Fri, 14 Aug 2009 04:47:24 +0200
2 meino.cramer@×××.de wrote:
3
4 > I am looking for a faster way to do a
5 >
6 > cp -a r <thisdir> <thatdir>
7 >
8 > locally on one machine with one harddisk inside.
9
10 rsync can parallel some of the tasks, like creating paths while files
11 are being copied, so I guess it wouldn't hurt to test it against cp:
12
13 rsync -HaAX <thisdir> <thatdir>
14
15 Flags are:
16
17 -H - hardlinks
18 -a - ids, modes, timestamps
19 -A - ACLs
20 -X - extended attributes
21
22 You might want to throw in '-x' for 'one-file-system', but that
23 contradicts with behavior of given cp example.
24
25 --
26 Mike Kazantsev // fraggod.net

Attachments

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