2016-07-21 13:48:49 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2016-09-16 19:33:29 +00:00
|
|
|
ARGS="$@"
|
|
|
|
[ -z "${ARGS}" ] && ARGS="backup"
|
2016-07-21 13:58:33 +00:00
|
|
|
HOSTNAME=$(hostname -s)
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2016-07-21 13:58:33 +00:00
|
|
|
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \
|
2016-09-16 19:33:29 +00:00
|
|
|
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml "${ARGS}"
|