Skip to content
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

Add option to create image with backing image option set #14

Open
abbbi opened this issue Oct 9, 2024 · 0 comments
Open

Add option to create image with backing image option set #14

abbbi opened this issue Oct 9, 2024 · 0 comments

Comments

@abbbi
Copy link
Owner

abbbi commented Oct 9, 2024

Now that the new drive backup api is implemented, the created images could already set the backing image of the prior backup (the utility creates the image, not qemu itself anymore)

So during full backup the target image is created:

qemu-img create -f qcow .. FULL-timestamp-imagename.partial

-> Data is pushed to image .partial and if all actions are complete is renamed to FULL-timestamp-imagename.

The next incremental backup could then:

  1. find the latest image in the target directory
  2. create the new image for the incremental backup and already set the backing image information to the last backup created:

qemu-img crate -f qcow ... -b FULL-timestamp-imagename INC1-timestamp-imagename

-> push incremental data to INC-timestamp-imagename

The next incremental backup

qemu-img crate -f qcow ... -b INC1-timestamp-imagename INC2-timestamp-imagename

and so on.

This obsoletes the rebase functionality as images are already contain all references required for immediate use.

Should be implemented as option, because it might be the case that the last image is not available if it is moved to off-site location:

https://qemu-project.gitlab.io/qemu/interop/bitmaps.html#example-incremental-push-backups-without-backing-files

@abbbi abbbi added this to the 0.31 milestone Oct 9, 2024
@abbbi abbbi changed the title Add backing image to last image created during backup Add backing image to latest image during backup Oct 9, 2024
@abbbi abbbi changed the title Add backing image to latest image during backup Add option to create image with backing image option set Oct 9, 2024
@abbbi abbbi removed this from the 0.31 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant