Skip to content

Instantly share code, notes, and snippets.

@lucianotonet
Created October 17, 2015 00:49
Show Gist options
  • Save lucianotonet/88a79e3d0347c4171ef2 to your computer and use it in GitHub Desktop.
Save lucianotonet/88a79e3d0347c4171ef2 to your computer and use it in GitHub Desktop.
#!/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