tar Basic compress
1 |
tar cvfz public_html.tgz public_html |
tar Basic compress with date
1 |
tar -czvf public_html_`date +%Y%m%d`.tgz public_html |
tar increase compress
1 2 |
tar -g /backup/snap-shot-www -czvf /backup/backup_www_0.tgz /var/www/ tar -g /backup/snap-shot-www -czvf /backup/backup_www_`date +%Y%m%d`.tgz /var/www/ |
tar compress remote backup
1 |
tar cvfz - /var/www | ssh user@host "cat > /backup/www.tgz" |
tar compress remote decompress
1 |
tar cvfz - /var/www | ssh user@host "tar xvfz -" |
tar remote compress backup
1 |
ssh user@host "tar -zcf - /var/www/" > /_backup/www.tgz |
Leave a Reply