[backup-ft] Hello backup-ft!

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
linter
Yohann D'ANELLO 2022-06-28 09:46:01 +02:00
parent 3dfdf5cb4f
commit 991f49aa57
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
6 changed files with 17 additions and 3 deletions

View File

@ -5,7 +5,9 @@ glob_borg:
to_backup:
- /etc
- /var
path: /backup/borg
paths:
- /backup/borg-server
- /backup/borg-adh
remote:
- borg@backup-ft.adm.crans.org:/backup/borg-server/{{ ansible_hostname }}
retention:
@ -17,4 +19,5 @@ glob_borg:
- make-parent-dirs
encryption_passphrase: "{{ vault.borg.encryption_passphrase }}"
ssh_privkey: "{{ vault.borg.ssh.privkey }}"
ssh_pubkey: "{{ vault.borg.ssh.pubkey }}"
ssh_options: ""

View File

@ -0,0 +1,3 @@
---
interfaces:
adm: ens18

View File

@ -0,0 +1,6 @@
---
loc_borg:
to_backup:
- /etc
- /home_nounou
- /var

2
hosts
View File

@ -10,6 +10,7 @@ hodaur.adm.crans.org
cameron.adm.crans.org
[backups]
backup-ft.adm.crans.org
[baie]
cameron.adm.crans.org
@ -272,6 +273,7 @@ baie
virtu
[crans_vm]
backup-ft.adm.crans.org
belenios.adm.crans.org
boeing.adm.crans.org
cas.adm.crans.org

View File

@ -1,3 +1,3 @@
{{ ansible_header | comment }}
command="borg serve --restrict-to-path {{ borg.path }}",restrict {{ vault.borgbackup_ssh_pubkey }}
command="borg serve{% for path in borg.paths %} --restrict-to-path {{ path }}{% endfor %}",restrict {{ borg.ssh_pubkey }}

View File

@ -1,3 +1,3 @@
#!/usr/bin/tail +14
{{ ansible_header | comment }}
> Borgbackup (Serveur) a été déployé sur cette machine. Les backups sont situés dans {{ borg.path }}.
> Borgbackup (Serveur) a été déployé sur cette machine. Les backups sont situés dans {{ borg.paths|join(', ') }}.