Migrating redmine
Added by Ivan Jezdimirovic about 8 years ago
Hello, i have been searching for days on how to migrate redmine to a new server. No luck. If someone can help me with migrating i would appreciate it very much. This is my last resort, so if i broke a rule or something like that i apologize in advance.
My current redmine version is:
Environment:
Redmine version 3.2.1.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.6
Environment production
Database adapter Mysql2
SCM:
Git 2.7.4
Filesystem
Redmine plugins:
no plugin installed
Producion server is UBUNTU 16.04, the one i am trying to migrate is also UBUNTU 16.04
Thank you
Replies (4)
RE: Migrating redmine - Added by Ivan Jezdimirovic almost 8 years ago
If someone needs help, this is how i migrated database(mysql). On a new server i have installed redmine and mysql DB, the same way as i did with the old one. These are commands that i used to backup and restore DB:
BACKUP
mysqldump -uroot -pPASSWORD redmine_default | gzip > /mnt/redmine_backup/redmine_db_backup(date '+%F-%H-%M-%S').sql.gz
Restore
Copy redmine_db_backup(date '+%F-%H-%M-%S').sql.gz into /mnt/redmine_backup/(on a new server),gunzip redmine_db_backup(date '+%F-%H-%M-%S')
mysql -uroot -pPASSWORD redmine_default < redmine_db_backup(date '+%F-%H-%M-%S').sql
RE: Migrating redmine - Added by Toshi MARUYAMA almost 8 years ago
You need to run "rake db:migrate".
See RedmineUpgrade.
RE: Migrating redmine - Added by Ivan Jezdimirovic almost 8 years ago
May i ask why is that needed? Because after restart it works, witouth rake db:migrate
RE: Migrating redmine - Added by Toshi MARUYAMA almost 8 years ago
Ivan Jezdimirovic wrote:
May i ask why is that needed?
http://www.redmine.org/boards/2/topics/51332?r=51338#message-51338