Last change
on this file since 17950 was
15926,
checked in by uli, 5 years ago
|
Add script templates for borg backup.
|
File size:
523 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # |
---|
4 | # Initialize borg repository |
---|
5 | # |
---|
6 | # This script was generated from a template by ansible. |
---|
7 | # |
---|
8 | |
---|
9 | # Sourcing the backup-passphrase |
---|
10 | . /root/backup/.borg_passphrase |
---|
11 | |
---|
12 | |
---|
13 | {% for b in borgbackup_servers %} |
---|
14 | REPOSITORY=ssh://{{ b.user }}@{{ b.fqdn }}:{{ b.port }}/./{{ b.home }}{{ b.pool }}/{{ inventory_hostname_short }} |
---|
15 | echo "Initializing borg repo $REPOSITORY..." |
---|
16 | /usr/bin/borg init -v --encryption={{ borgbackup_encryption_mode }} --storage-quota={{ b.quota }} --make-parent-dirs {{ b.options }} $REPOSITORY |
---|
17 | {% endfor %} |
---|
Note: See
TracBrowser for help on using the repository browser.