shell 备份 redmine 数据到 S3
1、定时任务 # crontab -l 1 3 * * * bash /usr/local/redmine/backup/redmine_backup.sh 2、备份脚本 #!/bin/bash mysqldump -u username -p'password' redmine > /usr/local/redmine/backup/redmine_`date +%y_%m_%d-%H:%M:%S`.sql aws s3 mv /usr/local/redmine/backup/redmine_`date +%y_%m_%d-%H:%M:%S`.sql s3://reliabilityops-redmine-backup/redmine/mysql_bak/ --region=cn-north-1 aws s3 sync /usr/local/redmine/redmine/ s3://reliabilityops-redmine-backup/redmine/redmine_bak/ --region=cn-north-1