cfg/bin/backup

9 lines
193 B
Bash
Executable file

#!/bin/bash -e
CMD=${1:-backup}
HOSTNAME=$(hostname -s)
shift
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD} "$@"