Created
July 15, 2013 11:39
-
-
Save pratikdhaboo/5999322 to your computer and use it in GitHub Desktop.
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
| #Backup MySQL database as SQL | |
| mysqldump –u[user name] –p[password] [database name] > [dump file] | |
| #Backup MySQL with gzip compression | |
| mysqldump -u [uname] -p[pass] [dbname] | gzip -9 > [backupfile.sql.gz] | |
| #Backup the www folder on client machine | |
| cd /home/[username] | |
| tar -zcvf backup.tar.gz /var/www[/subfolder] #/subfolder to be added only if applicable | |
| #SCP to our server | |
| scp [backupfile.sql.gz] root@awishcar.com:/home/pratik |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment