8 lines
204 B
Bash
Executable file
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}
|