From 02aaf92719472ccfe23afb8bbc14cbe449c115b1 Mon Sep 17 00:00:00 2001 From: Sergey Morozov Date: Tue, 31 May 2022 18:03:19 +0300 Subject: [PATCH] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f19fde8..7d39a2a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # backupcleaner Tool to cleanup backup directory with daily, weekly and monthly backups. +This tool removes **everything** in the specified directory (not recursively) except files, containing timestamps in the filename that can identified by this tool as fresh backups. + +By default, this tool keeps last 7 daily backups, 4 weekly backups (4 last monday backups) and 3 monthly backups (1st day of last 3 months). You can redefine this by command line parameters. + +This tool expects timestamps like this: 20220531 (May 31, 2022), but of course, you can redefine this. ```text usage: clean-backups.py [-h] [-d N] [-w N] [-m N] [-f] PATH