「Redmineのバックアップ」の版間の差分
提供: オレッジベース
1行目: | 1行目: | ||
* filesディレクトリ<syntaxhighlight lang="bash"> | * filesディレクトリ<syntaxhighlight lang="bash"> | ||
$ sudo cp <REDMINE_PATH>/files <DOKOKANO_DIR>/. | $ sudo cp <REDMINE_PATH>/files <DOKOKANO_DIR>/. | ||
− | </syntaxhighlight>e.g.<syntaxhighlight lang="bash"> | + | </syntaxhighlight> |
+ | : e.g.<syntaxhighlight lang="bash"> | ||
$ sudo cp /var/www/redmine/redmine-3.3.3/files ~/work/backup/. | $ sudo cp /var/www/redmine/redmine-3.3.3/files ~/work/backup/. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* DB<syntaxhighlight lang="bash"> | * DB<syntaxhighlight lang="bash"> | ||
$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR> | $ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR> | ||
− | </syntaxhighlight>e.g.<syntaxhighlight lang="bash"> | + | </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月9日 (土) 01:07時点における版
- filesディレクトリ
$ sudo cp <REDMINE_PATH>/files <DOKOKANO_DIR>/.
- e.g.
$ sudo cp /var/www/redmine/redmine-3.3.3/files ~/work/backup/.
- DB
$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR>
- e.g.
$ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql