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 a cron option to the forget/prune policies #371

Open
jdumas opened this issue Apr 28, 2024 · 0 comments
Open

Add a cron option to the forget/prune policies #371

jdumas opened this issue Apr 28, 2024 · 0 comments

Comments

@jdumas
Copy link

jdumas commented Apr 28, 2024

Is your feature request related to a problem? Please describe.
This is related to #2 and #158, but somehow I don't think it's currently possible to do this.

Describe the solution you'd like
I would like to set a different cron option for the backup and for the forget/prune commands. I.e. something like this:

locations:
  my-location:
    from: /data
    to: my-backend
    cron: '0 3 * * 0' # Every Sunday at 3:00
    forget: prune # Run forget/prune after backup
    options:
      forget:
        keep-last: 5 # always keep at least 5 snapshots
        cron: '0 0 1 * *' # Only run forget/prune once a month
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

1 participant