I have an old centos server with pi 2.23 and a fresh ubuntu 20 server with pi 3.7
Is there a way to migrate all issued tokens to the new server without too much hassle?
Any downtime is not an option what so ever.
That’s why I’m very hesitant to update the old server first.
And I’m not sure if and how I can install pi 2.23 on the new server through packages.
I understand there’s a difference in database structure so that would need special attention.
Is there anything else that needs to be taken in consideration?
run a backup pi-manage backup create -e on the old server
run a restore on the new server pi-manage backup restore <your backup file>. This will restore the old database to the newly installed server. This means you have the new code with old data.
You could now run the db upgrade / migration: pi-manage db upgrade -d /opt/privacyidea/lib/privacyidea/migrations/.
This would be the basic concept to go. Pitfalls included. Path changes included per individual installation.
Thank you for the hint!
The path did work for me quite well, so we moved straight from 2.23.5 to 3.9.2 (yeah, it took ca 2yrs to come back to the topic).
Some testing is still ahead, however I can see all the tokens on the target system, as well can authenticate with all token types.