Originally Posted by salimshahzad
suggest or advise the best practice of bz2 or tar gz. i have a directory /var/opt/axigen which has size 33gb on daily basis as per the schedule we need to take back.
i want to know pros and crons of below commands, say best compression and decompress
tar cvzf /var/opt/bkup_axigen/axigen_bkup_1.tar.gz /var/opt/axigen
tar -jvzf9 /var/opt/bkup_axigen/axigen_bkup_1.tar.gz /var/opt/axigen
I think that you are missing an - in the first and have the wrong file extention
As for the second, I am unfamilar with the 9 (may be a typo)
I would read the man page for tar or http://linux.die.net/man/1/tar
I believe that bz2 would create a smaller archive, but it may be slower than gz.