What is an "old" cache directory?


             auto remove old cache directories

What is the definition of “old” here?

As per the documentation :

Within the cache directory, there’s a sub directory for each repository the cache was used with. Restic updates the timestamps of a repo directory each time it is used, so by looking at the timestamps of the sub directories of the cache directory it can decide which sub directories are old and probably not needed any more. You can either remove these directories manually, or run a restic command with the --cleanup-cache flag.

Does this make more sense? Or did you see this already and have more questions that are not answered by the current documentation?

1 Like

> restic cache --help


–max-age days max age in days for cache directories to be considered old (default 30)