Cleanup backup script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
aa49fc68e1
commit
5eca93a4c7
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
ARGS="$@"
|
ARGS=${@:-backup}
|
||||||
[ -z "${ARGS}" ] && ARGS="backup"
|
|
||||||
HOSTNAME=$(hostname -s)
|
HOSTNAME=$(hostname -s)
|
||||||
|
|
||||||
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
|
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
|
||||||
|
|
Loading…
Reference in a new issue