「Redmineのバックアップ」の版間の差分
提供: オレッジベース
(同じ利用者による、間の1版が非表示) | |||
1行目: | 1行目: | ||
− | + | === filesディレクトリ === | |
+ | <syntaxhighlight lang="bash"> | ||
$ cp -r <REDMINE_PATH>/files <DOKOKANO_DIR>/. | $ cp -r <REDMINE_PATH>/files <DOKOKANO_DIR>/. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | e.g.<syntaxhighlight lang="bash"> | |
$ 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 === | ||
+ | <syntaxhighlight lang="bash"> | ||
$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR> | $ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | e.g.<syntaxhighlight lang="bash"> | |
$ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql | $ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
[[Category:Redmine]] | [[Category:Redmine]] |
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