mirror of
https://github.com/restic/restic.git
synced 2025-01-03 13:45:20 +00:00
doc: Add obsolete Index files
This commit is contained in:
parent
281eea9c05
commit
e3ffe33216
1 changed files with 35 additions and 23 deletions
|
@ -162,32 +162,44 @@ used to reconstruct the index. The files are encrypted and authenticated like
|
||||||
Data and Tree Blobs, so the outer structure is `IV || Ciphertext || MAC` again.
|
Data and Tree Blobs, so the outer structure is `IV || Ciphertext || MAC` again.
|
||||||
The plaintext consists of a JSON document like the following:
|
The plaintext consists of a JSON document like the following:
|
||||||
|
|
||||||
[ {
|
{
|
||||||
"id": "73d04e6125cf3c28a299cc2f3cca3b78ceac396e4fcf9575e34536b26782413c",
|
"obsolete": [
|
||||||
"blobs": [
|
"ed54ae36197f4745ebc4b54d10e0f623eaaaedd03013eb7ae90df881b7781452"
|
||||||
|
],
|
||||||
|
"packs": [
|
||||||
{
|
{
|
||||||
"id": "3ec79977ef0cf5de7b08cd12b874cd0f62bbaf7f07f3497a5b1bbcc8cb39b1ce",
|
"id": "73d04e6125cf3c28a299cc2f3cca3b78ceac396e4fcf9575e34536b26782413c",
|
||||||
"type": "data",
|
"blobs": [
|
||||||
"offset": 0,
|
{
|
||||||
"length": 25
|
"id": "3ec79977ef0cf5de7b08cd12b874cd0f62bbaf7f07f3497a5b1bbcc8cb39b1ce",
|
||||||
},{
|
"type": "data",
|
||||||
"id": "9ccb846e60d90d4eb915848add7aa7ea1e4bbabfc60e573db9f7bfb2789afbae",
|
"offset": 0,
|
||||||
"type": "tree",
|
"length": 25
|
||||||
"offset": 38,
|
},{
|
||||||
"length": 100
|
"id": "9ccb846e60d90d4eb915848add7aa7ea1e4bbabfc60e573db9f7bfb2789afbae",
|
||||||
},
|
"type": "tree",
|
||||||
{
|
"offset": 38,
|
||||||
"id": "d3dc577b4ffd38cc4b32122cabf8655a0223ed22edfd93b353dc0c3f2b0fdf66",
|
"length": 100
|
||||||
"type": "data",
|
},
|
||||||
"offset": 150,
|
{
|
||||||
"length": 123
|
"id": "d3dc577b4ffd38cc4b32122cabf8655a0223ed22edfd93b353dc0c3f2b0fdf66",
|
||||||
}
|
"type": "data",
|
||||||
|
"offset": 150,
|
||||||
|
"length": 123
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}, [...]
|
||||||
]
|
]
|
||||||
} ]
|
}
|
||||||
|
|
||||||
This JSON document lists Blobs with contents. In this example, the Pack
|
This JSON document lists Packs and the blobs contained therein. In this
|
||||||
`73d04e61` contains two data Blobs and one Tree blob, the plaintext hashes are
|
example, the Pack `73d04e61` contains two data Blobs and one Tree blob, the
|
||||||
listed afterwards.
|
plaintext hashes are listed afterwards.
|
||||||
|
|
||||||
|
The field `obsolete` lists the storage IDs of index files that have been
|
||||||
|
replaced with the current index file. This happens when index files are
|
||||||
|
repacked, this happens for example when old snapshots are removed and Packs are
|
||||||
|
recombined.
|
||||||
|
|
||||||
There may be an arbitrary number of index files, containing information on
|
There may be an arbitrary number of index files, containing information on
|
||||||
non-disjoint sets of Packs. The number of packs described in a single file is
|
non-disjoint sets of Packs. The number of packs described in a single file is
|
||||||
|
|
Loading…
Reference in a new issue