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

Is it possible to add an environment variable to control how many full backups to keep? #5

Closed
Jack187 opened this issue Nov 19, 2017 · 4 comments

Comments

@Jack187
Copy link

Jack187 commented Nov 19, 2017

Hello,

thx for the great tool. I started using it today, but I'm missing the option to only save 2 (or n) full backups.

I'm currently using the following environment variables:
-e "VOLUMERIZE_JOBBER_TIME=0 */5 * * * *" \ (for testing purposes all 5 mins a inc backup)
-e "VOLUMERIZE_FULL_IF_OLDER_THAN=1h" (for testing purposes after 1h a fresh full backup)

here is what I found in the duplicity man page:
remove-all-inc-of-but-n-full [--force]
Delete incremental sets of all backups sets that are older than the count:th last full backup (in other words, keep only old full backups and not their increments). count must be larger than zero. A value of 1 means that only the single most recent backup chain will be kept intact. Note that --force will be needed to delete the files instead of just listing them.

As I'm new to docker, Is there a way to achieve this with the current version of volumerize or is it something that needs to be added?

Thx for your work!

Bye,
Jack

@Jack187 Jack187 changed the title Is it possible to add an environment variable to control hwo many full backups to keep? Is it possible to add an environment variable to control how many full backups to keep? Nov 19, 2017
@blacklabelops
Copy link
Owner

Do we still need something in this ticket?

@darron1217
Copy link

@Jack187 I think this is solved by #7

What do you think?

@blacklabelops
Copy link
Owner

In this form I think it is solved by #7.

Later on we can think about a Maintenance Mode where you can define several parameters for maintaining long time backup archives.

@Jack187
Copy link
Author

Jack187 commented Dec 9, 2017

Yes, it's solved!

I tested it with following configuration:

-e "JOB_NAME2=RemoveAllButNFull"
-e "JOB_COMMAND2=/etc/volumerize/remove-all-but-n-full 2 --force" \

Thanks for adding! I really appreciate it.

Cheers
Jack

@Jack187 Jack187 closed this as completed Dec 9, 2017
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

3 participants