1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/borg-client/templates/borg-restore.cfg.j2
Florian Pritz 76054595a5
borg: Set borg-restore cache path for service
Neither $XDG_CACHE_HOME nor $HOME are defined when this is run via the
systemd service so just hardcode the path in the config.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-06-28 11:55:43 +02:00

15 lines
280 B
Django/Jinja

# We set the repo in the /usr/local/bin/borg wrapper which is enough
$borg_repo = "";
$cache_path_base = "/root/.cache/borg-restore.pl";
{% if filesystem == "btrfs" %}
@backup_prefixes = (
{regex => "^/", replacement => "backup-snap/"},
);
{% endif %}
1;
# vim: set ft=perl: