「Redmineのバックアップ」の版間の差分

提供: オレッジベース
移動先: 案内検索
 
(同じ利用者による、間の3版が非表示)
1行目: 1行目:
* filesディレクトリ<syntaxhighlight lang="bash">
+
=== filesディレクトリ ===
$ sudo cp <REDMINE_PATH>/files <DOKOKANO_DIR>/.
+
<syntaxhighlight lang="bash">
 +
$ cp -r <REDMINE_PATH>/files <DOKOKANO_DIR>/.
 
</syntaxhighlight>
 
</syntaxhighlight>
: e.g.<syntaxhighlight lang="bash">
+
e.g.<syntaxhighlight lang="bash">
$ sudo cp /var/www/redmine/redmine-3.3.3/files ~/work/backup/.
+
$ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/.
 
</syntaxhighlight>
 
</syntaxhighlight>
* DB<syntaxhighlight lang="bash">
+
 
 +
=== プラグイン ===
 +
<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">
+
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>/.
e.g.
$ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/.

プラグイン

$ cp -r <REDMINE_PATH>/plugins <DOKOKANO_DIR>/.
e.g.
$ cp -r /var/www/redmine/redmine-3.3.3/plugins ~/work/backup/.

DB

$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR>
e.g.
$ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql