Unix GZIP backup


/ Published in: Bash
Save to your folder(s)

copied straight from the source


Copy this code and paste it in your HTML
  1. # archive
  2. tar -zcvf backup.gz public_html
  3.  
  4. # copy archive to current directory
  5. wget http://urlpathto/backup.gz
  6.  
  7. # compy archive to mac
  8. curl -c -o "http://urlpathto/backup.gz"
  9.  
  10. # restore to current directory
  11. tar -zxvf backup.gz

URL: http://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.