Created
October 17, 2015 00:49
-
-
Save lucianotonet/88a79e3d0347c4171ef2 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
#!/bin/bash | |
tar czf ~/backups/backup_`date +%d_%m_%Y`.tgz ~/public_html | |
mysqldump -uUSUARIO -pSENHA NOMEBANCO | gzip > backups/NOMEBANCO_`date +%d_%m_%Y`.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment