trac backup & restore
元データ /path/to/my_trac
1. hotcopy
trac-admin /path/to/my_trac hotcopy /path/to/backup_trac
( hotcopyは上書き出来ないので、既にバックアップがある場合、backup_trac.1にしておく。
何世代か残す。)
2. 別サーバーへコピー
普通に、rsync
3. 設置して、動かす
/path/to/new_tracにコピーした場合。
trac-admin /path/to/new_trac upgrade
tracのバージョンアップに対応しておく。
trac用のhttpd.confを/etc/httpd/conf.d/へリンクする
### configtest
Syntax error on line 16 of /etc/httpd/conf.d/trac.conf:
Invalid command ‘DefaultInitEnv’, perhaps misspelled or defined by a module not included in the server configuration
エラーが出た。
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
mod_fcgidが入っていなかったので yum install mod_fcgid
最後に、権限をapacheに変更
chown -R apache:apache .
httpd restartでOKでした。