子ページ
  • Maintenance

比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。
コメント: Migrated to Confluence 5.3

Backup

This instruction assume that WEKO is running on the following environment. This is just an example.

  • Installed Directory

    /var/www/html/nc2

  • MySQL Account

    DB NameAccountPassword
    nc2dbnc2usernc2pass
  • Back-Up Directory

    /var/www/backup

Both application directory and database have to be made backup.
In case of the application directory, sample of backup commands are like this.

コード ブロック
languagetext
cd /var/www/html/nc2
/bin/tar zcvf /var/www/backup/wekoBackup.tgz *

 

In case of the database, sample of backup commands are like this.

コード ブロック
languagetext
/usr/bin/mysqldump -unc2user -pnc2pass nc2db > /var/www/backup/wekoBackup.sql

Restore

Its so easy to restore the WEKO from the backup files which were taken by the above. It's just restore the application directory and database itself.

Version-Up

In order to get the latest source code of WEKO repository, you need to check out it from the source repository.
This is an example in case of trunk code. If you are using a stable branch, please modify the end point.

コード ブロック
languagetext
svn co http://forge.at.nii.ac.jp/svn/nc/repository/trunk repository

Next, you need to copy the code to the application directory It's better to make a backup before this process.

コード ブロック
languagetext
sudo cp -rp repository /var/www/html/nc2/webapp/modules/

Login to the NetCommons as an administrator then go to the "Control Panel" -> "Module Manager".
In this case, you can see that the WEKO is updating from 2.1.4 to 2.1.6.
Please click the "Update" link on the WEKO column.

After clicking the updata link, you will see the pop-up winodw something like this.