forked from TrueCloudLab/restic
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)
157 lines
No EOL
2.8 KiB
Text
157 lines
No EOL
2.8 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-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2016-01-03T07:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-09-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2015-08-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
{
|
|
"time": "2014-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-18T12:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"within 1h",
|
|
"hourly within 1d",
|
|
"daily within 7d",
|
|
"weekly within 1m",
|
|
"monthly within 1y",
|
|
"yearly within 9999y"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-12T21:08:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"daily within 7d",
|
|
"weekly within 1m"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-09T21:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"weekly within 1m"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2016-01-03T07:02:03Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"weekly within 1m"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"monthly within 1y",
|
|
"yearly within 9999y"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"monthly within 1y"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-09-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"monthly within 1y"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-08-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"monthly within 1y"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null
|
|
},
|
|
"matches": [
|
|
"yearly within 9999y"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |