Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] RFC : fast copying of a whole directory tree
Date: Mon, 13 Feb 2012 10:50:43
Message-Id: 1329130167.8846.0@numa-i
1 Hi,
2
3 when copying a whole directory tree with standard tools, e.g.
4 tar cf - . | ( cd $DEST && tar xf - )
5 or cpio -p ...
6
7 the source disk is busy seeking. That's noisy and particularly slow.
8
9 I've written a small Python program which outputs the file names in
10 i-node order. If this is fed into tar or cpio nearly no seeks are
11 required during copying.
12
13 I've tested it by comparing the resulting copied tree to one created by
14 tar | tar.
15
16 But it's correctness for backing up data is critical.
17 Therefore I'd like to ask for comments.
18
19 Thanks for any comments,
20 Helmut.

Attachments

File name MIME type
TreeWalk_I_Sorted.py text/x-python

Replies

Subject Author
Re: [gentoo-user] RFC : fast copying of a whole directory tree Michael Orlitzky <michael@××××××××.com>