Quote:
Originally Posted by salimshahzad
hello
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
or
tar -jvzf9 /var/opt/bkup_axigen/axigen_bkup_1.tar.gz /var/opt/axigen
kind regards
|
I think that you are missing an - in the first and have the wrong file extention
tar
-cvzf /var/opt/bkup_axigen/axigen_bkup_1.tar.
bz2 /var/opt/axigen
As for the second, I am unfamilar with the 9 (may be a typo)
tar
-jvzf /var/opt/bkup_axigen/axigen_bkup_1.tar.gz /var/opt/axigen
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.