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

[Bug-0.2.5-renew] Backup with renew & retain - new initial backup was never made #55

Open
MRLOLKOPF opened this issue Apr 6, 2020 · 7 comments

Comments

@MRLOLKOPF
Copy link

MRLOLKOPF commented Apr 6, 2020

Hi,

I just tested the new version (0.2.5-renew) on my test Proxmox environment, unfortunately I found some bugs. I might try to fix them myself and make a pull request, but due to the corona situation I'm quite busy now. Just want to report those bugs, so that others might be aware of it. But really nice improvements with fsfreeze, checksum check, etc.!!

I tried to switch from the "keep" behavior to "renew" in combination with "retain". Unfortunately, whatever I've set "renew" or "retain" to, I never got a new initial backup. I manually made multiple backups in a row to test this, unfortunately just normal diffs were made without any limits. No new initial backup, even that the numbers defined in "renew" and "retain" were clearly exceeded. Not sure if I've done something wrong or maybe I've misunderstood something, does someone else have the same behavior?

Stay healthy!
Greetings from Germany!
Andy

@franklupo
Copy link
Member

@lephisto do you have any idea?

@lephisto
Copy link
Contributor

Can you write your complete commandline? It might have to do with the order in which the arguments are supplied. This might be a bug in argument processing.

thanks

@MRLOLKOPF
Copy link
Author

MRLOLKOPF commented Apr 10, 2020

Hello,

the command looked like this, I tried it with multiple values/type of values:

eve4pve-barc backup --vmid=103 --label='daily' --path='/mnt/pve/bak2hetznerCeph' --renew=7d --retain=5d --unprotect-snap

eve4pve-barc backup --vmid=103 --label='daily' --path='/mnt/pve/bak2hetznerCeph' --renew=7d --retain=1d --unprotect-snap

eve4pve-barc backup --vmid=103 --label='daily' --path='/mnt/pve/bak2hetznerCeph' --renew=7d --retain=1 --unprotect-snap

eve4pve-barc backup --vmid=103 --label='daily' --path='/mnt/pve/bak2hetznerCeph' --renew=6 --retain=1 --unprotect-snap

@lephisto
Copy link
Contributor

I guess if you switch from keep to another method, you should start off with a clean target directory (and delete snapshots with rbd). i never tested how things behave when you switch methods.

@MRLOLKOPF
Copy link
Author

I had the same idea, that's why I've set up a completely new VM with some test data and then I made multiple backups in a row till the renew and/or retain limits were reached. Unfortunately nothing happened... The only idea which I have is, the backups were labeled as "daily". Is it possible that the backups do not get counted by their count itself, but by the creation date? So if I create 10 backups in a row on the same day, but they are labeled als daily, maybe they will be recognized just as one backup? I don't know...

@lephisto
Copy link
Contributor

If you use --renew you can do as many backups as you want.

@Tatsu-Kishi
Copy link

This seems to be the same problem as #54, just with the global $reimg - this should be fixed in master from what I can tell checking the changes for #54.

In the renew loop it checks against $reimg before adding the counters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants