mirror of
https://github.com/restic/restic.git
synced 2026-01-18 12:54:00 -05:00
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.
150 lines
No EOL
2.6 KiB
Text
150 lines
No EOL
2.6 KiB
Text
{
|
|
"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
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-18T12:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-08T20:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-07T10:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-06T08:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-05T09:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-04T16:23:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 13d23h"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |