Gentoo Archives: gentoo-user

From: Ramon Fischer <Ramon_Fischer@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to compress lots of tarballs
Date: Sun, 26 Sep 2021 12:25:40
Message-Id: AM6PR10MB24404B45621085341C5FD610EFA69@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM
In Reply to: Re: [gentoo-user] How to compress lots of tarballs by Ramon Fischer
1 Addendum:
2
3 To complete the list. Here the parallel implementation of "lzip":
4
5 "plzip": https://www.nongnu.org/lzip/plzip.html
6
7 -Ramon
8
9 On 26/09/2021 14:23, Ramon Fischer wrote:
10 > In addition to this, you may want to use the parallel implementations
11 > of "gzip", "xz", "bzip2" or the new "zstd" (zstandard), which are
12 > "pigz"[1], "pixz"[2], "pbzip2"[3], or "zstmt" (within package
13 > "app-arch/zstd")[4] in order to increase performance:
14 >
15 >    $ cd <path_to_mounted_backup_partition>
16 >    $ for tar_archive in *.tar; do pixz "${tar_archive}"; done
17 >
18 > -Ramon
19 >
20 > [1]
21 > * https://www.zlib.net/pigz/
22 >
23 > [2]
24 > * https://github.com/vasi/pixz
25 >
26 > [3]
27 > * https://launchpad.net/pbzip2
28 > * http://compression.ca/pbzip2/
29 >
30 > [4]
31 > * https://facebook.github.io/zstd/
32 >
33 >
34 > On 26/09/2021 13:36, Simon Thelen wrote:
35 >> [2021-09-26 11:57] Peter Humphrey <peter@××××××××××××.uk>
36 >>> part       text/plain 382
37 >>> Hello list,
38 >> Hi,
39 >>
40 >>> I have an external USB-3 drive with various system backups. There
41 >>> are 350 .tar
42 >>> files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't
43 >>> need to
44 >>> compress them, so I didn't, but now I think I'm going to have to. Is
45 >>> there a
46 >>> reasonably efficient way to do this? I have 500GB spare space on
47 >>> /dev/sda, and
48 >>> the machine runs constantly.
49 >> Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and
50 >> then:
51 >> mount USB-3 /mnt; cd /mnt; lzip *
52 >>
53 >> The archiver you chose will compress the file and add the appropriate
54 >> extension all on its own and tar will use that (and the file magic) to
55 >> find the appropriate decompresser when you want to extract files later
56 >> (you can use `tar tf' to test if you want).
57 >>
58 >> --
59 >> Simon Thelen
60 >>
61 >
62
63 --
64 GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF

Attachments

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

Replies

Subject Author
Re: [gentoo-user] How to compress lots of tarballs Peter Humphrey <peter@××××××××××××.uk>