8 lines
215 B
Bash
Executable file
8 lines
215 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
ARGS="$@"
|
|
[ -z "${ARGS}" ] && ARGS="backup"
|
|
HOSTNAME=$(hostname -s)
|
|
|
|
exec vault2env --key=/secret/private/duplicity/${HOSTNAME} -- \
|
|
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${ARGS}
|