J'ai des fichiers de taille 28Go.
Je veux compresser en utilisant .xz
LZMA, avec des fichiers de taille 1G (1024Mo) en .xz...
MyFile.vdi -> MyFile00.xz, MyFile01.xz, MyFile02.xz...
Comment faire sur macOS?
ÉDITION
sh-3.2# xz -ek9vfc Centos\ 7\ 1511\ 64bits_20170629\(avec_dukto\).vdi
xz: Les données compressées ne peuvent pas être écrites dans un terminal
xz: Essayez `xz --help' pour plus d'informations.
sh-3.2#
DEUXIÈME ÉDITION
UTILISATION
# xz -ek9vfc Centos\ 7\ 1511\ 64bits_20170629\(avec_dukto\).vdi
# xz -e9vfc < Centos\ 7\ 1511\ 64bits_20170629\(avec_dukto\).vdi | split -b 1024m - Centos\ 7\ 1511\ 64bits_20170629\(avec_dukto\).vdi.xz
Voici la sortie.
# ls -al Centos\ 7\ 1511\ 64bits_20170629\(avec_dukto\).vdi*
-rw-------@ 1 _unknown _unknown 17470324736 Jun 29 23:47 Centos 7 1511 64bits_20170629(with_dukto).vdi
-rw-r--r-- 1 _unknown _unknown 3898588580 Aug 22 22:19 Centos 7 1511 64bits_20170629(with_dukto).vdi.xz
-rw-r--r-- 1 _unknown _unknown 1073741824 Aug 23 12:15 Centos 7 1511 64bits_20170629(with_dukto).vdi.xzaa
-rw-r--r-- 1 _unknown _unknown 1073741824 Aug 23 13:44 Centos 7 1511 64bits_20170629(with_dukto).vdi.xzab
-rw-r--r-- 1 _unknown _unknown 1073741824 Aug 23 18:17 Centos 7 1511 64bits_20170629(with_dukto).vdi.xzac
-rw-r--r-- 1 _unknown _unknown 677363108 Aug 23 21:44 Centos 7 1511 64bits_20170629(with_dukto).vdi.xzad
sh-3.2#
Voici l'aide
# xz -h
Usage: xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.
-z, --compress force compression
-d, --decompress force decompression
-t, --test test compressed file integrity
-l, --list list information about .xz files
-k, --keep keep (don't delete) input files
-f, --force force overwrite of output file and (de)compress links
-c, --stdout write to standard output and don't delete input files
-0 ... -9 compression preset; default is 6; take compressor *and*
decompressor memory usage into account before using 7-9!
-e, --extreme try to improve compression ratio by using more CPU time;
does not affect decompressor memory requirements
-T, --threads=NUM use at most NUM threads; the default is 1; set to 0
to use as many threads as there are processor cores
-q, --quiet suppress warnings; specify twice to suppress errors too
-v, --verbose be verbose; specify twice for even more verbose
-h, --help display this short help and exit
-H, --long-help display the long help (lists also the advanced options)
-V, --version display the version number and exit
With no FILE, or when FILE is -, read standard input.
Report bugs to (in English or Finnish).
XZ Utils home page:
sh-3.2#