cfg/bin/backup
Knut Ahlers 4f6dc7b5e8
Adjust script to new vault2env version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-04-23 22:16:00 +02:00

8 lines
215 B
Bash
Executable file

#!/bin/bash -e
ARGS="$@"
[ -z "${ARGS}" ] && ARGS="backup"
HOSTNAME=$(hostname -s)
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS}