2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-07 03:20:49 +00:00
restic/internal/repository
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
..
testdata Moves files 2017-07-23 14:19:13 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
index_parallel_test.go repository: Add test for ForAllIndexes 2020-12-22 22:36:18 +01:00
index_parallel.go repository: Rename LoadAndDecrypt to LoadUnpacked 2022-03-28 22:09:49 +02:00
index_test.go errcheck: Add error checks 2021-01-30 20:02:37 +01:00
index.go repository: Simplify Blob equality check 2022-03-28 22:09:49 +02:00
indexmap_test.go Replace siphash by hash/maphash 2021-09-19 16:05:18 +02:00
indexmap.go Replace siphash by hash/maphash 2021-09-19 16:05:18 +02:00
key.go crypto: Use helpers for size calculations 2022-03-28 22:09:49 +02:00
master_index_test.go copy: Load snapshots before indexes 2022-04-09 12:27:25 +02:00
master_index.go repository: Remove pack implementation details from MasterIndex 2022-03-28 22:09:49 +02:00
packer_manager_test.go Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
packer_manager.go Simplify cache logic 2021-09-03 21:01:00 +02:00
repack_test.go copy: Implement by reusing repack 2022-03-26 20:47:15 +01:00
repack.go repository: Reduce repack workers to prevent deadlock 2022-04-23 11:28:18 +02:00
repository_internal_test.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
repository_test.go repository: Rename LoadAndDecrypt to LoadUnpacked 2022-03-28 22:09:49 +02:00
repository.go repository: Implement index/snapshot/lock compression 2022-04-30 10:07:42 +02:00
testing.go local: Limit concurrent backend operations 2022-04-09 12:21:38 +02:00
worker_group.go defer close(ch) outside repository.RunWorkers 2020-10-14 15:50:16 +02:00