Trigger full backup from cli / scripted migration
Maybe something like this already exists, but I could not really find it.
I am currently planning to migrate my Cloudron to a more powerful machine. The system is in use (although not busy) so I want to have the least possible downtime. What I could manually do is the following:
- login on old server
- go to backups and trigger a new backup
- immediately once the backup completed, get the backup id and then shutdown the server
My backups are written to an instance of Minio.
Once I have the id I can start the installation and restore on the new server.
What I am now looking for are ways to automate this whole process. So maybe directly from the terminal of the new server trigger the backup, poll for completion and then trigger the shutdown.
Or maybe it would even be nice if you could do that even in the browser based part of the Cloudron installation on the new host?
I don't have a script but if you want to keep the downtime low, we added this dry run feature last release - https://docs.cloudron.io/backups/#dry-run . This way you don't need to shutdown the old server while things are restoring on the new server. Of course, you have to be careful not to add new data in the old server since it won't be part of the backup but atleast the site will be up.