aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-09-01 00:27:39 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-09-01 00:27:39 +0200
commit768996a0c92dae7d6df9f0e8dca7dccffa986488 (patch)
treef5c825c706ba3155e476aa99beec2d2fba1652a0 /README.md
parent1ff6303a5a08504a938fd845505323f6a9771977 (diff)
downloadfrotate.hs-768996a0c92dae7d6df9f0e8dca7dccffa986488.tar.gz
Keep the oldest days so that they can move to other groups
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 17 insertions, 9 deletions
diff --git a/README.md b/README.md
index f33d831..4174d66 100644
--- a/README.md
+++ b/README.md
@@ -49,28 +49,36 @@ Different modes with the same days:
```
$ frotate --base 2 2019-08-31 2019-08-30 2019-08-29 2019-08-28 2019-08-27 2019-08-26 2019-08-25 2019-08-24
2019-08-31
-2019-08-30 2019-08-29
-2019-08-28 2019-08-27 2019-08-26 2019-08-25
+2019-08-29 2019-08-30
+2019-08-25 2019-08-26 2019-08-27 2019-08-28
2019-08-24
$ frotate --keep --base 2 2019-08-31 2019-08-30 2019-08-29 2019-08-28 2019-08-27 2019-08-26 2019-08-25 2019-08-24
-2019-08-31 2019-08-30 2019-08-28 2019-08-24
+2019-08-31 2019-08-29 2019-08-25 2019-08-24
$ frotate --delete --base 2 2019-08-31 2019-08-30 2019-08-29 2019-08-28 2019-08-27 2019-08-26 2019-08-25 2019-08-24
-2019-08-29 2019-08-27 2019-08-26 2019-08-25
+2019-08-30 2019-08-26 2019-08-27 2019-08-28
```
More or less realistic example when we keep some backups and get new ones, but not every day:
```
$ frotate --keep --base 2 2019-09-01 2019-08-31 2019-08-30 2019-08-28 2019-08-24
-2019-09-01 2019-08-31 2019-08-28 2019-08-24
+2019-09-01 2019-08-30 2019-08-28 2019-08-24
-$ frotate --keep --base 2 2019-09-05 2019-09-01 2019-08-31 2019-08-28 2019-08-24
-2019-09-05 2019-09-01 2019-08-28
+$ frotate --keep --base 2 2019-09-05 2019-09-01 2019-08-30 2019-08-28 2019-08-24
+2019-09-05 2019-08-30 2019-08-24
-$ frotate --keep --base 2 2019-09-06 2019-09-05 2019-09-01 2019-08-28
-2019-09-06 2019-09-05 2019-09-01 2019-08-28
+$ frotate --keep --base 2 2019-09-06 2019-09-05 2019-08-30 2019-08-24
+2019-09-06 2019-09-05 2019-08-24
+$ frotate --keep --base 2 2019-09-07 2019-09-06 2019-09-05 2019-08-24
+2019-09-07 2019-09-05 2019-08-24
+
+$ frotate --keep --base 2 2019-09-08 2019-09-07 2019-09-06 2019-08-24
+2019-09-08 2019-09-06 2019-08-24
+
+$ frotate --keep --base 2 2019-09-09 2019-09-08 2019-09-06 2019-08-24
+2019-09-09 2019-09-08 2019-09-06 2019-08-24
```