2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-31 02:48:30 +00:00
Michael Eischer 4b957e7373 repository: Implement index/snapshot/lock compression
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.
2022-04-30 10:07:42 +02:00
..
2017-07-23 14:19:13 +02:00
2017-07-23 14:19:13 +02:00
2021-01-30 20:02:37 +01:00
2021-09-19 16:05:18 +02:00
2021-09-03 21:01:00 +02:00