client user
This commit is contained in:
parent
645694e411
commit
443b5b4ee5
3 changed files with 13 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ fi
|
|||
|
||||
# Sourcing the backup-passphrase
|
||||
|
||||
. /root/.borg.passphrase
|
||||
. ~{{ borgbackup_client_user }}/.borg.passphrase
|
||||
|
||||
# Small helper commands, like listing backups, will help us in the future :)
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ if [ "$1" = "init" ]
|
|||
then
|
||||
{% for b in borgbackup_servers %}
|
||||
REPOSITORY={% if b.type == 'hetzner' %}ssh://{% endif %}{{ b.user }}@{{ b.fqdn }}:{% if b.type == 'hetzner' %}23/./{% endif %}{{ b.home }}{{ b.pool }}/{{ inventory_hostname }}
|
||||
/usr/local/bin/borg init $REPOSITORY {{ b.options }}
|
||||
/usr/local/bin/borg init --encryption=keyfile $REPOSITORY {{ b.options }}
|
||||
{% endfor %}
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue