「Redmineのバックアップ」の版間の差分
提供: オレッジベース
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> | ||
− | + | === 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日 (木) 14:36時点における版
filesディレクトリ
$ cp -r <REDMINE_PATH>/files <DOKOKANO_DIR>/.
$ cp -r /var/www/redmine/redmine-3.3.3/files ~/work/backup/.
DB
$ mysqldump -u <DB_USER> -p<PASSWORD> <DATABASENAME> > <DOKOKA_DIR>
$ mysqldump -u redmine_admin -ppassw0rd redmine > ~/work/backup/redmine.sql