I use the following command line to put everything in the D folder into a tar file in the backup folder.
sudo tar -cf /home/backup/D_backup$(date +"%Y%m%d").tar /home/D
However the backup file is the same size as the original folder. How do I compress it, doing something like a zip file in windows. I would like to do this from the command line.
Also, is there a way to encrypt it from the command line?



Adv Reply


Bookmarks