Last active
December 9, 2016 08:30
-
-
Save olivertappin/055c16637831dc456b3ceb47beea7aee to your computer and use it in GitHub Desktop.
Backup and restore public_html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup a directory | |
cd ~ | |
tar cvfz public_html.tar.gz public_html/ | |
# Restore a directory | |
cd ~/public_html/ | |
tar xvfz ../public_html.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment