#!/bin/bash # Run this script with sudo [ `whoami` = root ] || { echo "Need to run as root"; exit 1; } # Update config here and run the script - example values used below export PASSPHRASE="12345678901234567890" # Specify full system paths from the root export backupDirectory="/network/path/to/backps" export restoreDirectory="/tmp/restore-data/" duplicity --file-to-restore / "file://$backupDirectory" "$restoreDirectory"