Linux Backup & restore using tar command
Creating an uncompressed tar Archive using option -cvf
tar -cvh file.tar filename/directories (source)
Extracting files from Archive using option -xvf
tar -xvf file.tar
Creating a Zip file using tar
tar -xzvf file.tar.gz file/directory
tar -tvf file.tar -- to display the files inside the tar
tar -cjvf file (destination path).tar.bz2 filename/directories (source)
tar tvf file.tar ---- to read the files without extract
---------------------------------------------------------------------------
gzip -- compress the files. each single file is compressed into a single file
Syn: gzip filename
UnZip --- gunzip filename