2018-02-10 11:15:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2018-02-10 11:15:24 +00:00
|
|
|
ARGS=${@:-backup}
|
2016-07-21 13:58:33 +00:00
|
|
|
HOSTNAME=$(hostname -s)
|
2016-07-21 13:48:49 +00:00
|
|
|
|
2017-04-23 20:16:00 +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}
|