How do we backup or even transfer the Ayon database/settings.
i couldn’t find anything in the docs
We’re setting up our server soon with Ayon etc.
But i would like to have an autobackup of the database to another location, so in worst case scenario the server would die, we can load it in on another one.
(preffered we’ve a redundant server with autoswitching etc etc etc, but this is something for next year)
As far as I know, it’s possible to dump the entire database using pg_dump utility in the postgres container.
then for restoring from a backup, you just start the postgres container first on a fresh instance (without server) and use the same method as for restoring projects:
docker compose exec -T postgres psql -U ayon ayon < yourbackupfile.sql
Yep. I use this daily. But I cannot guarantee the redirect will work properly on Windows - they tend to misbehave and try to buffer everything which may be a problem in case of huge dumps - if that ever happens to you, please let me know and we’ll find a workaround
I hope it’s OK I bumped this thread back up from its dormant state. I just transferred the DB from one Ayon instance into another and it seemed to be working fine, thank you.
I would like to know what happens to bundles and bundle settings, are those copied over? (I didn’t get the bundles when restoring the DB)
The addons and dependency packages are there because I copied both the addons and the storage folder, so that’s good.
I did, and the bundles were there in the sql file, problem was that the backup only copied over part of it to the ayon db, some sql statements threw errors. Anyway I run it again and now the bundles are there… thank you!
So has anyone successfully been able to migrate data from an older server to a new server? I’ve been attempting to write a script that will automate the migration of the addon settings from my 1.5.2+202410141409 version server into my 1.11.2+202509052305 version server. But there are a lot of schema differences and it has been very difficult figuring out how to account for all the differences. Even trying to do it manually is a pain in the ass.
Yeah, that’s what I’ve been using. I’ve been working on a tool that will help me migrate the data between servers. But the problem I’m running into is the settings schemas have changed a bit between the server/addon versions.
For example, in the Maya addon (0.2.14) there is this setting:
It’s a slight difference. But this is a hard thing to account for in your code because these name changes are arbitrary. After thinking on it over the weekend, I’m resigned to the fact that I need to do this by hand to at least get the settings updated to the current formatting.
Yeah about that, addon settings may change over time and this is handeled per addon where each addon has a conversion script that tells ayon how to re-map settings e.g. check Maya’s conversion.py.
The only catch is these converstions work when applying settings from older versions to newer versions.
Therefore, you only need to backup/restore the values as they are returned form the api.