Backup/restore/Migrate database
I have a local server in 0.3.2 and a (future) prod server in 0.3.3.
I would like to move my database from the first one to the second one.
Ok so I dumped DB:
I scp the dump to the server, copy in docker, and connect to this docker container:
I removed existing database and create a fresh one:
Next I restore the database
In server side:
And restart:
It seems to work. Do you think I did it the right way? Any improvement to that process?
8 Replies
@charles if it seems okay to you you (both migrating DB and upgrading the schema) I could write it down in the doc π
I see that there is an "upgrade guide" in "soon" status !
There are additionnal steps to migrate workspace schemas. We will start documenting that starting 0.4
Are you facing any issue with your Twenty instance @iero? I can help if needed π
He actually migrated to the new docker-compose and was wondering how to move the data to the new instance
once the data is migrated, we will still need to take care of application level changes
Indeed, it seems to work, I don't see any error yet but I still work mainly in the old 0.3.2 database yet. I will be happy to do the additional step in this test environment as I will have to migrate my database
@charles any commands to test? I will migrate my main database as well to be ready for 0.3.4
great!
It will actually be 0.4.0!
I'm deploying right now on our production, I will face all the issues first so I can help others once the 0.4.0 is released
Great news! Will it possible to migrate my db directly from 0.3.2 to 0.4.0?
I'll help you π