Last active
December 20, 2015 13:49
-
-
Save hshimo/6141813 to your computer and use it in GitHub Desktop.
簡単、自動! MySQL を AutoMySQLBackup + cron でバックアップ ref: http://qiita.com/hshimo/items/b993416e0ff645c0bd50
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 | |
/usr/local/bin/automysqlbackup /etc/automysqlbackup/myserver.conf | |
chown root.root /var/backup/db* -R | |
find /var/backup/db* -type f -exec chmod 400 {} \; | |
find /var/backup/db* -type d -exec chmod 700 {} \; |
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
% ls /var/backup/db/ | |
daily fullschema latest monthly status tmp weekly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment