Skip to content

Commit

Permalink
Added explicit check-cache to address out-of-space
Browse files Browse the repository at this point in the history
  • Loading branch information
jkellerer committed Nov 10, 2021
1 parent 8cbfcd2 commit daed902
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions contrib/posix/conf.d/check.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ default-command = "check"
[check.check]
schedule = "daily"
schedule-lock-wait = "4h"

#
# Check cache
# `check` uses a separate local repo cache to detect problems. The default
# is to create this cache below "/tmp/". While the daily check (without reading
# actual data) uses less space cache-dir may require changing when on tmpfs
cache-dir = "{{.TempDir}}/.restic-temp-check-cache"
with-cache = true

##
# Profile "verify" may be used to schedule deep repository checks
Expand All @@ -55,4 +61,11 @@ schedule-lock-wait = "48h"
read-data = true
# Read a subset of the repository for verification
#read-data-subset = "15%"

#
# Check cache
# `check` uses a separate local repo cache to detect problems. The built-in
# default location of this cache is "/tmp/" which can cause issues on tmpfs
# as the cache may need several GB of storage. Overridding built-in default
# for the full repo verification check:
cache-dir = "~/.restic-temp-check-cache"
with-cache = true

0 comments on commit daed902

Please sign in to comment.