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でした。

This entry was posted on 水曜日, 5月 2nd, 2012 at 1:38 AM and is filed under Trac. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。