Moved to a repo at https://github.com/Geczy/coolify-migration
-
Star
(126)
You must be signed in to star a gist -
Fork
(31)
You must be signed in to fork a gist
-
-
Save Geczy/83c1c77389be94ed4709fc283a0d7e23 to your computer and use it in GitHub Desktop.
At this point we're ironically pummeling this with unmanaged versions on a version control platform :P
Time to make this a repo and accept PRs? I could do it but it's only right that you do it @Geczy considering you took the initiative :)
Good idea, I've made the repo here! https://github.com/Geczy/coolify-migration
Also updated this gist with a readme linking to the above
Thanks everyone for your contributions! Feel free to open a PR to manage these wonderful changes that are being suggested.
Just wanted to thanks for this perfect script.
Great script, thanks.
I created a coolify db restore, if backing up locally.
Long term we need a baseline CLI similar to Plesk provides for installation, updates, and recovery.
Also reporting that the original script works perfectly with the expected setup on v4.0.0-beta.406
I see that this script allows us to migrate Coolify instance, but how are you guys handling application migrations? For instance, running the script won't migrate the application such as Ghost CMS with underlying data to a new server?
I see that this script allows us to migrate Coolify instance, but how are you guys handling application migrations? For instance, running the script won't migrate the application such as Ghost CMS with underlying data to a new server?
Yes. The script also copies the volumes of each application (e.g. Ghost CMS and its database) to the new server. After running it, simply go to the Coolify dashboard on the destination and “Redeploy” each app. This will cause Traefik/Compose to create new containers for the applications by mounting the migrated volumes, preserving all the content (posts, themes, databases, uploads, etc.).
Here's a modified version of @AspireOne's ssh-agent version. It fixes the volumes being separated wrong when extracting the volumes from a container.