Restore from Instance Backup #1684
Replies: 11 comments 4 replies
-
Same question - How to restore coolify backup from the .dmp? |
Beta Was this translation helpful? Give feedback.
-
Another one with the doubt of how to restore the backup. Any idea? |
Beta Was this translation helpful? Give feedback.
-
@andrasbacsai Any help, please?? |
Beta Was this translation helpful? Give feedback.
-
I also really need to move my Coolify over to a new VPS. I've so far wasted a day, trying to figure out how to get it to work. |
Beta Was this translation helpful? Give feedback.
-
Coolify runs a postgres db underneath. try this pg_dump You can find the credentials in your settings http://youip:8000/settings#backup |
Beta Was this translation helpful? Give feedback.
-
I have managed to run the pg_restore command within the docker container 'coolify-db'. However these are NOT working to update the db successfully, even though the operation is running without issues. docker exec -it coolify-db 'bash' -> I uploaded an image to filebin.net and am running: pg_restore --verbose --clean -h localhost -U coolify -d postgres db.dmp After this step you can see all the fields updating, however no changes in the dashboard.. Don't know where to go from here. |
Beta Was this translation helpful? Give feedback.
-
Would love to know the answer to this? |
Beta Was this translation helpful? Give feedback.
-
https://gist.github.com/Geczy/83c1c77389be94ed4709fc283a0d7e23 something like this will work |
Beta Was this translation helpful? Give feedback.
-
Any updates here? Even the backup docs page is not working. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hints. I find this pretty bad that coolify doesn't support this officially. I was trying to recover from the autobackup, but was just getting weird 500 errors such as:
even when using the same |
Beta Was this translation helpful? Give feedback.
-
Hello all, The best case scenario for a complete coolify backup would be: Backup script:
I believe that if you backup the coolify-db's volume, you don't need to mess with pg_dump or pg_restore Restore script:
Obviously there's should be more steps into this. The backup and restore script could be baked inside the coolify's UI itself, so you back it up from there and on a new server (or even the same server (older state)) you restore from there as well. The biggest issue here is to separate the concerns on coolify's data itself and the apps' data, it's not an easy solution to bake. If you choose to to back to an old coolify state, what happens to an app that has new data? Lots of stuff has to be thought of. @andrasbacsai Coolify looks enough mature today, this functionality (imo) is very needed. |
Beta Was this translation helpful? Give feedback.
-
I noticed that we have Instance backup at Settings page, and was able to download Coolify database dump
e.g.
pg-dump-coolify-1706522852.dmp
How do we restore this backup to a new Coolify install? I can't find this anywhere on the docs.
Assuming this is just another Postgres container running, is it possible just import it into the database of a new Coolify setup and possibly re-generate all the configs/file?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions