JSON_CONF=$(mktemp) cleanup() { rm -f "${JSON_CONF}" } trap cleanup INT TERM EXIT function gpg_export_if_needed { echo "Prevent GPG keys for beeing exported" } # Always mark the secret key as available (do not try to import it) function gpg_sec_avail { true } # Override the read command with zenity read() { if command -v zenity &> /dev/null then eval $2=$(zenity --password) else command read $* fi } . ~/.config/ovh/duplicity-$(whoami).sh #Generate the configuration ~/scripts/duplicity/gen_config_remote.sh "${JSON_CONF}" TARGET="multi:${JSON_CONF}?mode=mirror&onfail=abort" DUPL_PARAMS="$DUPL_PARAMS --file-prefix-manifest 'hot_' --file-prefix-signature 'hot_' --file-prefix-archive 'cold_' "