mirror of
https://github.com/restic/restic.git
synced 2024-08-31 16:47:25 +02:00
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_parallel_test.go | ||
index_parallel.go | ||
index_test.go | ||
index.go | ||
indexmap_test.go | ||
indexmap.go | ||
key.go | ||
master_index_test.go | ||
master_index.go | ||
packer_manager_test.go | ||
packer_manager.go | ||
repack_test.go | ||
repack.go | ||
repository_internal_test.go | ||
repository_test.go | ||
repository.go | ||
testing.go | ||
worker_group.go |