摘要:
1. 创建备份路径mkdir /root/redmineback2. 修改路径访问权限chmod 777 /root/redmineback3. 添加脚本redback.sh,vi /root/redmineback/redback.sh# 备份文件rsync -a /var/www/redmine/files /root/redmineback/files # 备份数据mysqldump -uroot -d redmine | gzip >/root/redmineback/redmine_`date +%y_%m_%d`.gz4.修改/etc/crontab,让脚本自动执行, vi 阅读全文