4b957e7373
The config file is not compressed as it should remain readable by older restic versions such that these can return a proper error. As the old format for unpacked data does not include a version header, make use of a trick: The old data is always encoded as JSON. Thus it can only start with '{' or '['. For any other value the first byte indicates a versioned format. The version is set to 2 for now. Then the zstd compressed data follows. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
index.go | ||
index_parallel.go | ||
index_parallel_test.go | ||
index_test.go | ||
indexmap.go | ||
indexmap_test.go | ||
key.go | ||
master_index.go | ||
master_index_test.go | ||
packer_manager.go | ||
packer_manager_test.go | ||
repack.go | ||
repack_test.go | ||
repository.go | ||
repository_internal_test.go | ||
repository_test.go | ||
testing.go | ||
worker_group.go |