Hi,
Sorry if this has been asked before.
How to forget
snapshots in relative to the current time instead of latest
snapshot?
For eg: a user repo might has snapshots like these.
> restic snapshots
ID Time Host Tags Paths
---------------------------------------------------------------------------
9d838e8e 2020-09-30 00:00:00 server-1 database,myapp /tmp/dump_9f5b0c
7134a5e4 2020-10-10 00:00:00 server-1 database,myapp /tmp/dump_c45fa4
faa55269 2020-10-15 00:00:00 server-1 database,myapp /tmp/dump_7fd574
2f24f1a1 2020-10-20 00:00:00 server-1 database,myapp /tmp/dump_19e9e2
---------------------------------------------------------------------------
4 snapshots
I would like to keep user snapshots for the last one month only (now is Jan 2021).
There are many users using our backup solution. For users who actively creating backup, this should be easily done with --keep-within 1m --group-by ''
. But for inactive one, its quite tricky to get this done right.