Tool to cleanup backup directory with daily, weekly and monthly backups
Go to file
Сергей Морозов 6e99c6f43b Update README.md 2022-05-31 16:07:14 +03:00
tests add file generator for testing purpose 2022-05-31 13:16:32 +03:00
LICENSE Initial commit 2022-05-31 00:53:43 +03:00
README.md Update README.md 2022-05-31 16:07:14 +03:00
clean-backups.py Code refactoring 2022-05-31 12:30:19 +03:00

README.md

backupcleaner

Tool to cleanup backup directory with daily, weekly and monthly backups.

usage: clean-backups.py [-h] [-d N] [-w N] [-m N] [-f] PATH

Cleanup old backups

positional arguments:
  PATH               directory path

optional arguments:
  -h, --help         show this help message and exit
  -d N, --daily N    keep N daily backups, default: 7
  -w N, --weekly N   keep N weekly backups, default: 4
  -m N, --monthly N  keep N monthly backups, default: 3
  -f, --force        suppress remove confirmation