Skip to content

Commit daed902

Browse files
committed
Added explicit check-cache to address out-of-space
1 parent 8cbfcd2 commit daed902

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

contrib/posix/conf.d/check.conf

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ default-command = "check"
3131
[check.check]
3232
schedule = "daily"
3333
schedule-lock-wait = "4h"
34-
34+
#
35+
# Check cache
36+
# `check` uses a separate local repo cache to detect problems. The default
37+
# is to create this cache below "/tmp/". While the daily check (without reading
38+
# actual data) uses less space cache-dir may require changing when on tmpfs
39+
cache-dir = "{{.TempDir}}/.restic-temp-check-cache"
40+
with-cache = true
3541

3642
##
3743
# Profile "verify" may be used to schedule deep repository checks
@@ -55,4 +61,11 @@ schedule-lock-wait = "48h"
5561
read-data = true
5662
# Read a subset of the repository for verification
5763
#read-data-subset = "15%"
58-
64+
#
65+
# Check cache
66+
# `check` uses a separate local repo cache to detect problems. The built-in
67+
# default location of this cache is "/tmp/" which can cause issues on tmpfs
68+
# as the cache may need several GB of storage. Overridding built-in default
69+
# for the full repo verification check:
70+
cache-dir = "~/.restic-temp-check-cache"
71+
with-cache = true

0 commit comments

Comments
 (0)