Project

General

Profile

Actions

How to restore Redmine backup » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
chin-yeh, 03/12/2012 02:25 PM


How to restore Redmine backup

This restoration involves 2 parts, first part is to restore the application data; second part is to restore the Redmine database.

Steps (Part 1 of 2):
  1. obtain the backup location from How to backup Redmine
  2. in order to restore the Redmine, extract the whole backup to a temporary location and search for this folder:
    opt/redmine-x.x.x
    
  3. copy the folder, redmine-x.x.x and then paste it into:
    /opt
    
  4. change the folder owner to:
    $ chown -R redmine:redmine /opt/redmine-x.x.x
    
  5. done
Steps (Part 2 of 2):
  1. search for this file, redmine_backup.sql in the extracted backup folder:
    opt/db_bak
    
  2. ensure the following ports are unoccupied:
    • 50000
    • 3001
    • 3002
    • 3690
    • 3007
  3. login as redmine user and then cd to the Redmine folder:
    $ cd /opt/redmine-x.x.x
  4. execute the following script to start the Redmine:
    $ ./ctlscript.sh
  5. if started without any error, execute the following script to restore the Redmine database:
    $ ./use_redmine
    $ mysql -u root -p bitnami_redmine < redmine_backup.sql
    
    • refer to the server_login.xls to get the database password
  6. done.

Updated by chin-yeh almost 13 years ago · 2 revisions