7 lines
181 B
Bash
Executable file
7 lines
181 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
CMD=${1:-backup}
|
|
HOSTNAME=$(hostname -s)
|
|
|
|
exec vault2env /secret/private/duplicity/${HOSTNAME} -- \
|
|
duplicity-backup -f ${HOME}/.duplicity/${HOSTNAME}.yaml ${CMD}
|