cv4pve-barc icon indicating copy to clipboard operation
cv4pve-barc copied to clipboard

[Feature request] add ability to update base image instead of the oldest snap

Open matveevandrey opened this issue 5 years ago • 7 comments

If I understand soft logic correctly the base image is never updated and all the diffs are merged to the first (oldest) snap: current_image = base_image + oldest_diff + newest_diff

Theoretically oldest_diff could become large than base_image and restore could take for a while.

It would be nice to have an ability to update base image every time the oldest snapshot expired/deleted

Thanks

matveevandrey avatar Apr 12 '19 08:04 matveevandrey

Hi, good idea. I think about how to implement it.

Best regards

franklupo avatar Apr 12 '19 10:04 franklupo

Any chance to get this implemented?

matveevandrey avatar Jun 20 '19 11:06 matveevandrey

Hi, We are writing the new tool. It will take some time but we are well on our way.

Best regards

franklupo avatar Jun 20 '19 16:06 franklupo

Any news?

matveevandrey avatar Dec 17 '19 10:12 matveevandrey

Done here: https://github.com/lephisto/cv4pve-barc/commit/e4884b4b3b4cb7a61da05ba6e63ced5fd71535e8

lephisto avatar Jan 28 '20 20:01 lephisto

Done here: lephisto@e4884b4

I don't believe this is what @matveevandrey required.

Instead, I believe they were asking for the oldest dif to be merged into the initial base image, thus the base image is continually updated. This would prevent having to make a regular full base image backups, which on many production systems (multiple TBs) can take a very long time.

I'm not sure whether this is technically possible (i.e. to merge a dif into the base image).

mrtwister76 avatar Sep 22 '20 11:09 mrtwister76

Done here: lephisto@e4884b4

I don't believe this is what @matveevandrey required.

Instead, I believe they were asking for the oldest dif to be merged into the initial base image, thus the base image is continually updated. This would prevent having to make a regular full base image backups, which on many production systems (multiple TBs) can take a very long time.

I'm not sure whether this is technically possible (i.e. to merge a dif into the base image).

Correct. On my production system full backup takes a while(

matveevandrey avatar Sep 22 '20 12:09 matveevandrey