I need to upgrade a Server and there have to make a compressed backup of a lot of directories. The question is: Which format should I use? tar.gz, cpio? Both compression and decompression processes should be fast. In case I have some corruption on the Server later on, I want to be able to easily pick certain files out of my old backups.
Thanks, Philip
Good old standard tarballs allow for the extracting of a single file. For more detailed information, I would recommend you read the man page for tar. But, to get you started, here's a quick example :
You could use a read-only file system like
squashfs
. This will also compress the files. The advantage over tar, cpio is that getting a specific file is instant.Another alternative is to use 7zip or zip, but not as a solid archive.