Content
Restore backup from an older version
Added by Petr Zeman almost 2 years ago
Hi. I am running OpenProject 10.0.2 (PostgreSQL) as an older instance within a FreeBSD jail.
Now I would like to use the latest version (switching to new HW), so I deployed a new instance with the fresh installation of 12.4.
Is there a way to migrate the content from an old instance to the new one? Simple backup/restore will probably not work.
It ends with the error:
Error: The application encountered the following error: cannot load such file -- /usr/local/www/openproject/config/../lib/open\_project/configuration (LoadError)
There is information about running openproject configure
in the [Upgrading Docs]. But I am not aware of such binary in my installation (installed manually from GIT sources). So far I used rake
to run OpenProject stuff. E.g. redmine:email:receive_imap
.
But I didn't find anything like configure in rake tasks. Is openproject configure
some wrapper to rake
?
In rake tasks I can see just:
rake app:update # Update configs and some other initially generated files (or use just update:configs or update:bin)
But it ends with the same error as above. Is there any migration tool, or something like that?
Or do I really need to upgrade 10.0.2 to 10.0.3 ... to 10.latest, then to 11.0.0 ... 11.latest, and then to 12.4? If so, do I need to include all minor and hotfix versions? Or is it possible to upgrade 10.0.2 directly to 11.latest? And what is the best way of upgrading manual installation?
I have my own bash script to clone the GIT repository, then it installs the needed version of RUBY, and all other requirements (node, npm, passenger), and the relevant part is done via:
bundle install --deployment --without mysql2 sqlite development test therubyracer docker; npm install
Is it possible to upgrade such an installation? For production, I am going to switch from FreeBSD jail to Linux to avoid such issues in the future. But at my home lab, I have only a server with TrueNAS - FreeBSD-based distribution, so I would like to solve this anyway.
Thank you in advance for any hints. Ruby is not a language I am familiar with.