2023-10-05 19:36:33 +02:00
2022-04-15 15:53:19 +02:00
2023-10-05 19:22:22 +02:00
2023-10-05 19:36:42 +02:00
2022-06-26 12:35:04 +02:00
2022-06-26 12:35:04 +02:00

filereap

Delete dated files in a directory according to a time period config. Useful for backup directories that accumulate files over time.

Example config

# Specify a folder containing backups
path = "/backups/docker"

# uncomment if the backups are btrfs subvolumes
#btrfs = true

[[periods]]
# For the first day, keep one backup per second (basically, don't delete backups)
# syntax supports suffixes s, m, h, d, w
period_length = "1d"
chunk_size = "1s"

[[periods]]
# For the next week, keep one backup per hour
period_length = "1w"
chunk_size = "1h"

[[periods]]
# For the next 4 weeks, keep one backup per day
period_length = "4w"
chunk_size = "1d"

# can add more [[periods]] as needed

Example usage

filereap --help
Description
No description provided
Readme 78 KiB
Languages
Rust 100%