mirror of
https://github.com/octoleo/restic.git
synced 2024-11-10 23:31:09 +00:00
71891b340c
Make restic forget --keep-within accept time ranges measured in hours and choose accordingly which snapshots to keep and which to forget. Add relative tests.
374 lines
6.5 KiB
Plaintext
374 lines
6.5 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-12T21:02: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-04T12:30:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T12:28:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T12:24:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T12:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T11:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-04T10: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": "2016-01-01T01:03:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-01T01:02: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
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-18T12:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-08T20:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-07T10:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-06T08:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-05T09:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T16:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T12:30:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T12:28:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T12:24:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T12:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T11:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T10:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-03T07:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-01T07:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-01T01:03:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-01T01:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-21T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-18T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 2m2h"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |