/ Published in: Bash
copied straight from the source
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# archive tar -zcvf backup.gz public_html # copy archive to current directory wget http://urlpathto/backup.gz # compy archive to mac curl -c -o "http://urlpathto/backup.gz" # restore to current directory tar -zxvf backup.gz
URL: http://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/