From 0a4929876c1606abf2a599c6561affba368ab5fb Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 28 Nov 2017 22:38:21 +0100 Subject: Add caching --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index b643477..7deef69 100644 --- a/config/config.go +++ b/config/config.go @@ -11,6 +11,9 @@ // # This config key defines the default storage backend, as defined below ([storage.local_compressed]) // default_storage = "local_compressed" // +// # This defines the location of the cache file (can speed up creating backups; can be left out) +// cache_path = "~/.cache/petrific.cache" +// // [signing] // # Use this GPG key to sign snapshots // key = "0123456789ABCDEF0123456789ABCDEF01234567" @@ -55,6 +58,7 @@ var ( ) type Config struct { + CachePath string `toml:"cache_path,omitempty"` DefaultStorage string `toml:"default_storage"` Signing struct { Key string -- cgit v1.2.3-70-g09d2