cfg/bin/backup

8 lines
209 B
Bash
Executable file

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