Redmine部署和使用 - zbunix/building GitHub Wiki
- 开机启动redmine
root@android-work1:/# cat /etc/init/redmine.conf description "start redmine" start on runlevel [2345] task script /opt/redmine-1.3.2-0/ctlscript.sh restart end script
- 自动备份redmine数据
mkdir /root/redmineback
chmod 777 /root/redmineback
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
.gz
vi /etc/crontab 添加cron 表达式 01 1 * * * root /root/redmineback/redmineback.sh
- redmine数据保存目录修改
os-weizb@android-work2:/opt/redmine-1.3.2-0/apps/redmine$ ls -al files 总用量 1140 drwxrwxr-x 2 root root 4096 2012-03-21 13:54 . drwxrwxr-x 17 root root 4096 2012-03-21 14:03 .. -rw-rw-rw- 1 root root 1152054 2012-03-21 13:54 120321135406_BMW.bmp -rw-rw-r-- 1 root root 36 2012-03-11 16:25 delete.me os-weizb@android-work2:/opt/redmine-1.3.2-0/apps/redmine$ ls -al files lrwxrwxrwx 1 root root 28 2012-03-21 14:07 files -> /nwd-data/redmine-data/files
- redmine数据库保存目录修改
os-weizb@android-work2:/opt/redmine-1.3.2-0/mysql$ ls -al /nwd-data/redmine-data/ 总用量 16 drwxr-xr-x 4 root root 4096 2012-03-21 14:04 . drwxr-xr-x 11 root root 4096 2012-03-21 12:01 .. drwxr-xr-x 6 mysql root 4096 2012-03-19 12:00 data drwxr-xr-x 2 root root 4096 2012-03-21 14:04 files os-weizb@android-work2:/opt/redmine-1.3.2-0/mysql/data$ ls -al 总用量 36904 drwxr-xr-x 5 mysql root 4096 2012-03-21 14:23 . drwxr-xr-x 11 root root 4096 2012-03-21 14:25 .. -rw-rw---- 1 mysql mysql 6 2012-03-21 14:23 android-work2.pid lrwxrwxrwx 1 root root 43 2012-03-21 14:22 bitnami_redmine -> /nwd-data/redmine-data/data/bitnami_redmine
- 3台redmine数据实时同步 ** redmine mysql数据库 ** redmine files文件数据实时同步