Tar Backups with Compression gzip pigz

From wiki.linuxonlinehelp.de
Jump to: navigation, search

If you look for a builtin backup solution you should work with tar

To create a Backup of all User homes do:

tar -cvf /backupspath/homes-all-users-date.tar /home

To create a Backup on a Single Core Server you can compress with:

tar -cvzf /backupspath/homes-all-users-date.tar /home

To create a Backup on a Multi Core Server you can compress with "pigz" on the fly (Compression Max= -9):

tar -cvf - /home | pigz -9 > /backupspath/homes-all-users-date.tgz

Tar can work over NFS mounted Shares and piped SSH Connections too!

To read out what the Backup includes do:

tar -tvf /backupspath/homes-all-users-date.tgz > /Backup-index.txt