cfg/bin/backup

10 lines
193 B
Text
Raw Normal View History

2016-07-21 13:48:49 +00:00
#!/bin/bash -e
CMD=${1:-backup}
2016-07-21 13:58:33 +00:00
HOSTNAME=$(hostname -s)
2016-07-21 13:48:49 +00:00
2016-09-16 18:17:01 +00:00
shift
2016-07-21 13:58:33 +00:00
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \
2016-09-16 18:17:01 +00:00
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD} "$@"