Hi,
I always create the tar then I compress it, as a two steps. How can I do this in one step?
Code:
xyz - is a directory which is under /var/log
Step 1. tar -cvf /home/sam/march27_backup.tar /var/log/xyz
Step 2. gunzip march27_backup.tar
I did this and I get error message.
Code:
tar -cvf /home/sam/march27_backup.tar /var/log/xyz |gzip -c
Thank you.