2023-10-14 22:04:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#Absolute path to this script
|
|
|
|
SCRIPT=$(readlink -f $0)
|
|
|
|
#Absolute path this script is in
|
|
|
|
SCRIPTPATH=$(dirname $SCRIPT)
|
|
|
|
|
|
|
|
cd $SCRIPTPATH
|
|
|
|
USER=$(whoami)
|
2023-10-22 13:46:17 +00:00
|
|
|
sudo -E docker run --net=host --rm -e KEY -e DOC_KEY -e SECRETS_ARCHIVE_PASSPHRASE -e DUPLICITY_PASSPHRASE -e BACKUP_WORKFLOW -v $SCRIPTPATH:/root/duplicity_playbooks -v /mnt:/mnt:z -i duplicity:master /root/duplicity_playbooks/launch_top_playbook.sh
|