cfg/bin/backup

9 lines
204 B
Text
Raw Normal View History

#!/bin/bash
set -euo pipefail
2016-07-21 13:48:49 +00:00
ARGS=${@:-backup}
2016-07-21 13:58:33 +00:00
HOSTNAME=$(hostname -s)
2016-07-21 13:48:49 +00:00
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
2016-10-15 12:43:30 +00:00
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS}