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
#!/bin/sh | |
# Grab the date, captain! | |
DATE=`date` | |
# Dump all databases | |
mysqldump -u root --all-databases > /root/backup-sql/$DATE.sql | |
# Encrypt the backup based on a specified users PGP public key | |
gpg -e -r security@mydomain.com -a --trust-model always "/root/backup-sql/$DATE.sql" |
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
### Keybase proof | |
I hereby claim: | |
* I am benduncan on github. | |
* I am benduncan (https://keybase.io/benduncan) on keybase. | |
* I have a public key ASDF2ZFYo5iqCyy97WO4iIHlB49tfdMm0lcM0l7DZYX3NAo | |
To claim this, I am signing this object: |