Tag Info

New answers tagged

0

It is not a good idea compressing directly with 7z spcially on unix/linux systems: 7z does not preserve permissions and or user/group info. So: first tar, and then compress. As reported on 7zip wiki page at http://en.wikipedia.org/wiki/7z#Limitations : Limitations The 7z format does not store filesystem permissions (such as UNIX owner/group ...


0

xz is preferred due to it having the highest compression rate. However, it compresses slower, but it makes up for it with its compression.


3

Although tar cJf archive files... as detailed by Zacharee1 and by heemayl is usually what you'll want to do, another way is to pipe tarred data to the xz command: tar c files... | xz > archive.tar.xz Since Ubuntu's tar supports the J option, this alternate way is specifically useful when you wish to pass options to xz. In this example, I tar and xzip some ...


4

Use tar with -J option: tar -cvJf images.tar.xz /directory/containing/images/* tar is used to combine multiple files into one (Archive) and then we need to compress the archive using XZ compression algorithm. From man tar: -c, --create create a new archive -v, --verbose verbosely list files processed -J, --xz -f, --file ARCHIVE use ...


3

Use this command: tar cJf <archive.tar.xz> <files>. Separate file paths with a space.


0

If you want to tar all files listed in filename.list, you should use the tar -T filename.list command rather than tar 'cat filename.list'. From the tar manpage: -T, --files-from FILE get names to extract or create from FILE Using -T will prevent you from getting the error: -bash: /bin/tar: Argument list too long if you try to compress a ...


2

I believe that per-subvolume compression is not available yet. From the BTRFS wiki: Most mount options apply to the whole filesystem, and only the options for the first subvolume to be mounted will take effect. This is due to lack of implementation and may change in the future. This means that (for example) you can't set per-subvolume nodatacow, ...



Top 50 recent answers are included