Backup with tar

Backup with tar

Posted By: pmietlicki

Published to Linux on Jun 04, 2015

Every time you make an update, it is wiser to make a backup using tar.

To know : if you have a tar file (without gzip) just remove the "z" option

Compress a complete folder with tar and gzip :

 tar -cvzf archive.tar.gz your_folder/

Uncompress it :

tar xvzf /your_folder/ archive.tar.gz

To get the list of files inside the archive :

 tar -ztvf file.tar.gz


Tags: gzip, tar

Archive