-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Scheduled backup #49
Comments
Hello Abhinav, Great question. I have considered it and even wrote a solution for it, but then decided against releasing. I found it better in my circumstances to setup the LXD servers with a cron task to automate this. This way if there was any kind of issue with the dashboard connecting to LXD servers (say network outage, or someone shutting down the host running the dashboard) the backups would still continue as scheduled. I am not opposed to looking into this again. Currently the dashboard has the ability to schedule snapshots, this is because the LXD protocol has this option as a configuration parameter of instances. Unfortunately it does not have this same option for backups. |
Thanks for the update, Matthew. Scheduled snapshots are a good compromise, but scheduled backups gives extra peace of mind. Nevertheless, if you don't mind posting the cron task based backup approach then it will be very helpful. |
The backup script will most likely need to be customized as to your organizations needs, but with that said I wrote a quick script in python that would backup all the instances in a list of projects. This could be used as a start to building the solution that you would want. Things to consider would be:
With that said here is a python script that can be used as a starting point and having a cron task point to. Save it to a file and call it to run from a schedule in /etc/crontab.
|
Great, Thanks Matthew. Keep up the good work |
Hi Matthew,
Just wondering if you have considered adding scheduled backup and retention feature. I tried LXDware before but dropped it over https://www.nuber.io/ due to that feature. But I would really like to use LXDware for future project.
Thanks,
Abhinav
The text was updated successfully, but these errors were encountered: