Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××.be>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] [OT] how to delete a directory tree really fast
Date: Fri, 22 Oct 2021 11:36:19
Message-Id: C6F574BN.KJAVYVUS.CT5MOPRK@MRRREHMK.2YECNXZC.224ZSJLQ
1 Hi,
2
3 Is there anything faster than
4
5 rm -rf <TREE>
6
7 ?
8
9 I'm using rync with the --link-dest=<PREVBackUp> option.
10
11 Since this option uses hard links extensively, both, <TREE> and
12 <PREVBackUp> have to be
13 on the same file system. Therefore, just re-making the file system
14 anew, cannot be used.
15
16 There are more than 55,000 files on some <PREVBackUp> which is located
17 on a BTRFS file system.
18 Standard 'rm -rf' is really slow.
19
20 Is there anything I can do about this?
21
22 Many thanks for a hint,
23 Helmut

Replies