#!/bin/bash # Justin, 2023-07-18 # Override the PS4 for debugging #PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' #set -x; if [ $# -eq 0 ]; then echo "Specify program to execute."; exit 0; elif [ "$1" = "test" ]; then ###### START ###### duplicity \ --encrypt-key A68371451EE475C9F7EEE21462915F4037235CE4 \ /volume1/backups/test/local \ scp://backup/backups/test/remote ###### END ###### else echo "No commands matched."; exit 1; fi