mirror of
https://github.com/octoleo/restic.git
synced 2024-11-17 02:25:12 +00:00
f3fdc66b32
sort.Sort is not guaranteed to be stable. Go 1.19 has changed the sorting algorithm which resulted in changes of the sort order. When comparing snapshots with identical timestamp but different paths and tags lists, there is not meaningful order among them. So just keep their order stable.
416 lines
6.8 KiB
Plaintext
416 lines
6.8 KiB
Plaintext
{
|
|
"keep": [
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": [
|
|
"path1",
|
|
"path2"
|
|
],
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-13T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-10-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": [
|
|
"path1",
|
|
"path2"
|
|
],
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-13T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-12T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-20T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-11T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-10T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-09T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-08T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-06T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-05T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-02T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-10-01T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo]"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |