- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 47
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
AutoRotate #212
Comments
i dont think i will work on this, you can easily work around that by scripting via bash or alike. https://github.com/abbbi/virtnbdbackup/blob/master/scripts/vmbackup.sh |
Hey, I'm the author of those scripts. I caution you against using the prune option in those scripts. The prune option leaves the backups inconsistent because the script doesn't manage dirty bitmaps properly. I think it's fixable, it's just a pain to do. I'm re-writing the whole thing to be a node script this weekend. I plan on making a more robust backup system that includes managing bitmaps. I may even look for a node file rotation system for better backup rotations. |
Should i remove the Script from the repo? |
If you don't mind, you may want to pull it. The rotation looks broken, and I would not want people to rely on it. Sorry for the trouble @abbbi My node script is working, I need to drop in the logic for rotations and cleaning up bitmaps next. If you would consider a PR I will send one your way. |
Here is what I'm currently using to rotate my backups - https://github.com/slackdaystudio/vmsnap This NodeJS application is identical to the original bash script but also scrubs bitmaps and checkpoints off VMs when rotating. I'm in the middle of testing it now. My tests are coming back green, but I want to wait until the end of the month to see if the new checkpoint will be cut properly. |
Let me reopen discussion. As far as I understand, the proper way is to merge backups is using some daemon on host, that monitor autorotate periods, but for now we have two standalone applications for backups and restore, that don't suits for this. Neverless we can use some commandline options that instructs on next backup make autorotate. For example, --groupBy monthly --rotate-depth 2 on next daily virtnbdbackup merge incremental backups for previous periods to next full backup and cleans not needed backups for specified periods. As far as I understand these operations makes image on restore for backup chain, so we can reuse them. |
The vmsnap Node app can produce snapshots based on a configurable time period (using the This means at the start of every new period (month, quarter, bi-annual, year) vmsnap creates a new full backup and erases the old checkpoints from the domain. You can track down the correct period folder if you need to roll back to a point in time. The side effect is that all periods start with a full backup and incremental backups afterward. This is not great for space if you run daily backups with I set my backups to be This is the full command I run to backup my VMs:
This produces the following directory structure in my BACKUP_ROOT location:
Does this help explain the scheduling part, or have I added confusion? |
Hello,
The auto mode lacks the function of the maximum number of incremental backups.
In the number of days or copies created.
The text was updated successfully, but these errors were encountered: