Skip to content

Commit e0e1cbc

Browse files
committed
ops/storage/backup: Restic cache
1 parent bb2192e commit e0e1cbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/ops/storage/backup.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,7 @@ Persistent=true
394394
[Install]
395395
WantedBy=timers.target
396396
```
397+
398+
!!! note "restic 的缓存"
399+
400+
默认情况下,restic 会在 `$XDG_CACHE_HOME/restic` 或 `~/.cache/restic` 下缓存一些索引文件以提升性能。不过 systemd 默认不会给服务设置 `XDG_CACHE_HOME` 和 `HOME` 环境变量。因此,环境变量文件中需要额外设置 `RESTIC_CACHE_DIR`,或前述的与家目录相关的环境变量。

0 commit comments

Comments
 (0)