Objective
Backup Redmine or move Redmine to other server
1. Use mysqldump
to backup redmine
database in MySQL
1 | $ mysqldump -u root -h localhost -p redmine > redmine_backup.sql |
2. move your whole Redmine Folder with redmine_backup.sql
to your new server
You would need to install Redmine first. If not, please read the article How to install Redmine.
3. create a redmine_backup
database in MySQL and import the redmine_backup.sql
1 | CREATE DATABASE redmine_backup CHARACTER SET utf8mb4; |
1 | $ mysql -u root -h localhost -p redmine_backup < redmine_backup.sql |
4. Setup the config file in Redmine Folder
Add backup
config to config/database.yml
:
1 | backup: # production → backup |
5. Install Redmine (Optinal)
1 | sudo gem install bundler |
6. Run Redmine Server
1 | mysql.server restart |
Reference:
https://zlargon.github.io/blog/Redmine/install-redmine-on-mac/
https://youtu.be/2-_ZU7N3XEM