1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 11:34:22 +00:00
gestalt-amadeus/restore.sh

17 lines
342 B
Bash
Raw Normal View History

2023-05-17 12:36:47 +00:00
#!/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 \
2024-10-25 01:09:24 +00:00
restore \
2024-10-24 08:38:59 +00:00
--force \
--allow-source-mismatch \
"${DUPLICITY_TARGET_URL}" \
/mnt