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

Make rules more flexible #6

Open
bhelm opened this issue Aug 21, 2018 · 0 comments
Open

Make rules more flexible #6

bhelm opened this issue Aug 21, 2018 · 0 comments

Comments

@bhelm
Copy link

bhelm commented Aug 21, 2018

I like the idea of a stand-alone tool to decide about file deletion. But the rules can be more flexible.

Currently the rule "days20" would keep one per day for 20 days. If i want to keep 4 per day, i cant.

Coming from btrfs-sxbackup im used to rules like this:
4d:8/d, 1w:4/d, 2w:daily, 1m:weekly, 3m:2/m, 12m:none
which translates to:
If younger than 4 Days, keep everything
For older than 4 days, keep 8 per Day
For older than 1 Week, keep 4 per Day
For older than 2 Weeks, keep 1 per Day
For older than 1 Month, keep 2 per Month
for older than 12 months, keep none.

As Btrfs-SXBackup is written in python too, maybe those rules can be easily ported over?

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