Restore from Instance Backup #1684
Replies: 13 comments 8 replies
|
Same question - How to restore coolify backup from the .dmp? |
|
Another one with the doubt of how to restore the backup. Any idea? |
|
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. |
|
Coolify runs a postgres db underneath. try this pg_dump You can find the credentials in your settings http://youip:8000/settings#backup
|
|
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. |
|
Would love to know the answer to this? |
This comment was marked as low quality.
This comment was marked as low quality.
|
Any updates here? Even the backup docs page is not working. |
|
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 |
|
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. |
|
This section of the docs might be helpful for those looking to restore backups: https://coolify.io/docs/databases/backups#restore-command |
|
Here is an other simple way to restore a backup (on Mac):
|

Uh oh!
There was an error while loading. Please reload this page.
I noticed that we have Instance backup at Settings page, and was able to download Coolify database dump
e.g.
pg-dump-coolify-1706522852.dmpHow 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!
All reactions