backupcleaner/README.md

22 lines
629 B
Markdown
Raw Normal View History

2022-05-31 00:53:43 +03:00
# backupcleaner
2022-05-31 00:55:09 +03:00
Tool to cleanup backup directory with daily, weekly and monthly backups.
2022-05-31 16:07:14 +03:00
```text
2022-05-31 00:55:09 +03:00
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
2022-05-31 16:50:01 +03:00
-t FORMAT, --timestamp-format FORMAT
format of timestamp, default: %Y%m%d
2022-05-31 16:07:14 +03:00
```