| Crates.io | rdedup-prune |
| lib.rs | rdedup-prune |
| version | 0.1.0 |
| created_at | 2020-08-04 22:28:34.586161+00 |
| updated_at | 2020-08-04 22:28:34.586161+00 |
| description | implementation of a `prune` command for `rdedup`, following the behavior of `attic` |
| homepage | https://github.com/pfernie/rdedup-prune |
| repository | https://github.com/pfernie/rdedup-prune |
| max_upload_size | |
| id | 273033 |
| size | 138,018 |
Prunes rdedup names that do not match the given criteria. Names must be in a format matching
<prefix><timestamp> where timestamp is formatted as yyyy-mm-dd-HH-MM-SS. Alternate timestamp
formats may be specified with the --timestamp-format option.
Specifying a negative value for any of --keep-{hourly,daily,weekly,monthly,yearly} will result
in an unlimited number for that category. Specifying 0 disables the directive (the same as not
specifying the directive at all).
The --keep-within rule specifies an interval in which to keep all names, which do not count
towards any counts for the --keep-{hourly,daily,weekly,monthly,yearly} rules. Intervals are
specified as
For example --keep-within 1d -h 2 -d 2 would keep all names within a day, the most recent
2 hourly names prior to a day ago, and the most recent daily names prior to a day ago.