mirror of
https://github.com/restic/restic.git
synced 2025-12-25 00:59:36 -05: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.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 | ||