mirror of
https://github.com/octoleo/restic.git
synced 2025-01-08 01:04:40 +00:00
74ebc650ab
Allow keeping hourly/daily/weekly/monthly/yearly snapshots for a given time period. This adds the following flags/parameters to restic forget: --keep-within-hourly duration --keep-within-daily duration --keep-within-weekly duration --keep-within-monthly duration --keep-within-yearly duration Includes following changes: - Add tests for --keep-within-hourly (and friends) - Add documentation for --keep-within-hourly (and friends) - Add changelog for --keep-within-hourly (and friends)
862 lines
16 KiB
Plaintext
862 lines
16 KiB
Plaintext
{
|
|
"keep": [
|
|
{
|
|
"time": "2016-01-18T12:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-12T21:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-08T20:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-07T10:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-06T08:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-05T09:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T16:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-03T07:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-01T07:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-13T10:20:30.1Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-13T10:20:30.1Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-18T12:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-08T20:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-07T10:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-06T08:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-05T09:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T16:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-03T07:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-01T07:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-13T10:20:30.1Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-13T10:20:30.1Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"daily within 1y2m3d3h"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |