Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created March 26, 2013 04:59
Show Gist options
  • Save jasperf/5243249 to your computer and use it in GitHub Desktop.
Save jasperf/5243249 to your computer and use it in GitHub Desktop.
Gzip and Gunzip a whole site from the command line
//Gzip a site on the server as a backup
tar -zcvf domain.com.tar.gz /home/jasper/domain.com
//Gunzip a gzipped tar file
tar -zxvf domain.com.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment