Sequence of events :
- Machine 1 backups data
- Machine 2 backups data to same repo
- Machine 1 runs
restic ls
. Does it see the new files added by machine 2 ?
How does restic handle the cache in this scenario?
Sequence of events :
restic ls
. Does it see the new files added by machine 2 ?How does restic handle the cache in this scenario?
The complete data in a repository can be read by everyone with access to the repository (i.e., having a key for that repository). Thus, both machines could read each others data.
The cache contains a subset of the files in the repository. Each machine will simply download files that are missing in its cache once the contained data is required.
Will machine 1 see the new snapshots added by machine 2 ? Won’t the cache be old ?
cache is not used “offline” - machine 1 will list remote repository to check if cache is still valid and updates any missing/changed files.
Two remarks: