Posted By

melvitax on 11/12/08


Tagged

unix gzip


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jackkeller


Unix GZIP backup


 / Published in: Bash
 

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

copied straight from the source

  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

Report this snippet  

You need to login to post a comment.