cfg/bin/backup
Knut Ahlers 5eca93a4c7
Cleanup backup script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-02-10 12:16:24 +01:00

8 lines
204 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
ARGS=${@:-backup}
HOSTNAME=$(hostname -s)
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS}