mirror of
https://github.com/Steffo99/backup-duplicity.git
synced 2024-12-22 11:34:22 +00:00
15 lines
331 B
Bash
Executable file
15 lines
331 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Get secrets from files
|
|
# Insecure, but there's not much I can do about it
|
|
# It's duplicity's fault!
|
|
export PASSPHRASE=$(cat "${DUPLICITY_PASSPHRASE_FILE}")
|
|
|
|
echo "Launched in restore mode, restoring backup..." >> /dev/stderr
|
|
duplicity \
|
|
--force \
|
|
--allow-source-mismatch \
|
|
"${DUPLICITY_TARGET_URL}" \
|
|
/mnt
|