Skip to content

Instantly share code, notes, and snippets.

@hshimo
Last active December 20, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hshimo/6141813 to your computer and use it in GitHub Desktop.
Save hshimo/6141813 to your computer and use it in GitHub Desktop.
簡単、自動! MySQL を AutoMySQLBackup + cron でバックアップ ref: http://qiita.com/hshimo/items/b993416e0ff645c0bd50
#!/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 {} \;
% 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