mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-20 11:54:39 +02:00
borg: Add borg-restore.pl config
Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
parent
425f4263d8
commit
6eccd3332f
@ -3,6 +3,9 @@
|
||||
- name: install borg and tools
|
||||
pacman: name=borg,perl-app-borgrestore state=present
|
||||
|
||||
- name: install borg-restore config
|
||||
template: src=borg-restore.cfg.j2 dest=/etc/borg-restore.cfg owner=root group=root mode=0644
|
||||
|
||||
- name: check if borg repository already exists
|
||||
command: borg list {{ backup_host }}:{{ backup_dir }}
|
||||
register: borg_list
|
||||
|
10
roles/borg-client/templates/borg-restore.cfg.j2
Normal file
10
roles/borg-client/templates/borg-restore.cfg.j2
Normal file
@ -0,0 +1,10 @@
|
||||
# We set the repo in the /usr/local/bin/borg wrapper which is enough
|
||||
$borg_repo = "";
|
||||
|
||||
#@backup_prefixes = (
|
||||
#{regex => "^/", replacement => "backup-snap/"},
|
||||
#);
|
||||
|
||||
1;
|
||||
|
||||
# vim: set ft=perl:
|
Loading…
Reference in New Issue
Block a user