Dokploy / dokploy

Open Source Alternative to Vercel, Netlify and Heroku.
https://dokploy.com/
Other
9.31k stars 459 forks source link

Back ups for Dokploy #709

Open daniel-abramov opened 5 days ago

daniel-abramov commented 5 days ago

What problem will this feature address?

Currently, it seems there is no possibility of backing up and restoring the Dokploy instance. In other words, consider a scenario where a user has a setup with 10+ apps running on a server. If something goes wrong with the machine, the user must set up Dokploy from scratch, recovering and re-configuring all the apps. This might be a lot of work or even not feasible for larger-scale products.

In other words, consider a scenario where a user has a setup with 10+ apps running on a server. If something goes wrong with the machine, the user must set up Dokploy from scratch, recovering and re-configuring all the apps. This might be a lot of work or even not feasible for larger-scale

Describe the solution you'd like

It would be nice to have the possibility to backup Dokploy and an option to "Set up the machine from a backup" when the instance is initialized. I.e., so that if a user installs Dokploy, it gives you the option:

Additionally, it might help users who may want to switch from Dokploy to Dokploy Cloud to "import" their whole set up instead of recreating it from scratch.want to switch from Dokploy to Dokploy Cloud to "import" their whole setup

Describe alternatives you've considered

The only viable alternative seems to be regular backups of the whole machine (one could, of course, only back up Dokploy's configuration, but since the internal configuration and directories in question are subject to change, it would not be a reliable strategy to simply copy some directories or the Dokploy database associated with a current version of Dokploy).

Another alternative "workaround" that I considered is using Dokploy Cloud, as I suppose that it should perform backups anyway. However, from what I understood, Dokploy Cloud does not allow you to "import" the existing Dokploy setup (and manually re-creating a complex setup is very costly and error-prone).

Additional context

Related to (a more elaborate version of?) https://github.com/Dokploy/dokploy/issues/668

kerimovok commented 15 hours ago

Recently, I faced the exact situation

I had to recreate each service and export and import database data manually, since there is no zip/ftp backup options, but only S3