I want to migrate my OpenProject installation to a new server. How should I do that?
Is database import/export enough or I should do other things too (like secret key, etc.)
Do you use a manual installation?
the following steps should be sufficient:
1. Copy the application code itself, adjust permissions
2. Remove temporary files (sessions when using file-based sessions in /tmp/*
3. Dump / Restore the database
4. Copy other folders (attachments when attachments_storage_path is set), local repositories when in use. Note that the paths must be identical at least for the repositories, since they are hard coded in the database unless using managed repositories in 5.0.
5. The secret key can either be re-used, or a new key base can be generated (e.g., with rake secret), just remember that this will invalidate all current sessions and thus I suggested removing them server-side in step 2.
6. Copy the webserver configuration
For a packaged installation, install the fresh package and copy the configuration files (config/database.yml, config/configuration.yml). as well as steps 3 - 5.
Replies (1)
Hey Krisztian,
Do you use a manual installation?
the following steps should be sufficient:
1. Copy the application code itself, adjust permissions
2. Remove temporary files (sessions when using file-based sessions in /tmp/*
3. Dump / Restore the database
4. Copy other folders (attachments when
attachments_storage_path
is set), local repositories when in use. Note that the paths must be identical at least for the repositories, since they are hard coded in the database unless using managed repositories in 5.0.5. The secret key can either be re-used, or a new key base can be generated (e.g., with
rake secret
), just remember that this will invalidate all current sessions and thus I suggested removing them server-side in step 2.6. Copy the webserver configuration
For a packaged installation, install the fresh package and copy the configuration files (
config/database.yml
,config/configuration.yml
). as well as steps 3 - 5.Best,
Oliver