2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-22 22:58:26 +00:00
restic/internal
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
..
2020-09-05 10:07:16 +02:00
2022-03-28 22:23:47 +02:00
2021-01-30 20:02:37 +01:00
2020-12-11 09:41:59 +01:00
2020-12-23 23:26:04 +03:00
2021-01-30 20:19:47 +01:00
2021-01-30 20:19:47 +01:00