Debian Codegraph @

changelog/0.8.0_2017-11-26/pull-1040

raw
1 Enhancement: Add local metadata cache
2
3 We've added a local cache for metadata so that restic doesn't need to load
4 all metadata (snapshots, indexes, ...) from the repo each time it starts. By
5 default the cache is active, but there's a new global option `--no-cache`
6 that can be used to disable the cache. By default, the cache a standard
7 cache folder for the OS, which can be overridden with `--cache-dir`. The
8 cache will automatically populate, indexes and snapshots are saved as they
9 are loaded. Cache directories for repos that haven't been used recently can
10 automatically be removed by restic with the `--cleanup-cache` option.
11
12 A related change was to by default create pack files in the repo that contain
13 either data or metadata, not both mixed together. This allows easy caching of
14 only the metadata files. The next run of `restic prune` will untangle mixed
15 files automatically.
16
17 https://github.com/restic/restic/pull/1040
18 https://github.com/restic/restic/issues/29
19 https://github.com/restic/restic/issues/738
20 https://github.com/restic/restic/issues/282
21 https://github.com/restic/restic/pull/1287
22 https://github.com/restic/restic/pull/1436
23 https://github.com/restic/restic/pull/1265