2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00
restic/internal/cache
Michael Pratt 2133869127 cache: OS-specific cache directories
Windows, and to a lesser extent OS X, don't conform to XDG and have
their own preferred locations for caches.

On Windows, use %LOCALAPPDATA%/restic (i.e., ~/AppData/Local/restic). I
can't find authoritative documentation from Microsoft recommending
specifically which of %APPDATA%, %LOCALAPPDATA%, and %TEMP% should be
used for caches, but %LOCALAPPDATA% is where browsers store their
caches, so it seems like a good fit.

On OS X, use ~/Library/Caches/restic, which is recommended by the Apple
documentation. They do suggest using the application "bundle identifier"
as the base folder name, but restic doesn't have one, so I just used
"restic".
2017-09-27 21:16:22 -07:00
..
backend_test.go Add cache 2017-09-24 21:54:53 +02:00
backend.go cache: Synchronize downloading 2017-09-25 15:58:20 +02:00
cache.go cache: OS-specific cache directories 2017-09-27 21:16:22 -07:00
dir.go cache: OS-specific cache directories 2017-09-27 21:16:22 -07:00
file_test.go Add cache 2017-09-24 21:54:53 +02:00
file.go cache: Auto-remove invalid files 2017-09-24 23:11:47 +02:00
testing.go Add cache 2017-09-24 21:54:53 +02:00