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

16 lines
382 B
Bash
Raw Permalink Normal View History

2023-03-14 18:32:14 +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!
2023-05-17 12:33:44 +00:00
export PASSPHRASE=$(cat "${DUPLICITY_PASSPHRASE_FILE}")
2023-03-14 18:32:14 +00:00
2023-05-17 12:36:47 +00:00
echo "Launched in backup mode, performing backup..." >> /dev/stderr
duplicity \
--allow-source-mismatch \
--full-if-older-than "${DUPLICITY_FULL_IF_OLDER_THAN}" \
/mnt \
"${DUPLICITY_TARGET_URL}"