Last active
May 8, 2018 16:13
-
-
Save filipeandre/a38858ade8dc787386bba75498bf938f to your computer and use it in GitHub Desktop.
Simple commands to backup
This file contains hidden or 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
| # Zip and compress folder | |
| tar -cjf /mysql.tar.bz2 . | |
| # Restore folder | |
| tar -C . -xjf /mysql.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment