Redmineの自動バックアップ設定を以下にまとめます。 バックアップシェルの作成 今回は日毎にバックアップをしようと思います。cron.dailyにシェルを作成します。 # cd /etc/cron.daily/ # vi redmine_backup.sh 以下がredmine_backup.shです。MySQLのデータとRedmineのファイルデータを7日間バックアップします。 #!/bin/bash # バックアップ先ディレクトリを指定 BACKDIR=/var/backup # MySQLrootパスワード ROOTPASS=root #バックアップ日の日付 today=`date +%y%m%d` #バックアップ日から7日前の日付 daysago=`date --date "7 days ago" +%y%m%d` #Apache停止 /etc/init.d/httpd sto