「Redmineのバックアップ」の版間の差分
提供: オレッジベース
6行目: | 6行目: | ||
$ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/. | $ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === プラグイン === | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | $ cp -r <REDMINE_PATH>/plugins <DOKOKANO_DIR>/. | ||
+ | </syntaxhighlight> | ||
+ | e.g.<syntaxhighlight lang="bash"> | ||
+ | $ cp -r /var/www/redmine/redmine-3.3.3/plugins ~/work/backup/. | ||
+ | </syntaxhighlight> | ||
+ | |||
=== DB === | === DB === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
2017年12月14日 (木) 23:13時点における最新版
filesディレクトリ
$ cp -r <REDMINE_PATH>/files <DOKOKANO_DIR>/.
$ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/.
プラグイン
$ cp -r <REDMINE_PATH>/plugins <DOKOKANO_DIR>/.
$ cp -r /var/www/redmine/redmine-3.3.3/plugins ~/work/backup/.
DB
$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR>
$ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql