Compare commits

...

2 commits

Author SHA1 Message Date
Robin Kloppe 1e2055ec9a typo 2024-04-30 21:00:24 +02:00
Robin Kloppe c5f72997f8 static passphrase 2024-04-30 20:57:57 +02:00

View file

@ -49,10 +49,18 @@ BDIRS="etc var/customers"
ENDDIR="/media/hddmount/duplicity"
LOGDIR='/var/log/duplicity' # must exist
# Setting the pass phrase to encrypt the backup files. Will use symmetrical keys in this case.
# Setting the passphrase to encrypt the backup files. Will use symmetrical keys in this case.
# Set one Password per Backup
PASSPHRASE=$(dd if=/dev/urandom 2>/dev/null | tr -cd '[:alnum:]' | fold -w21 | head -1)
export PASSPHRASE
# Hint: generate a safe password: dd if=/dev/urandom 2>/dev/null | tr -cd '[:alnum:]' | fold -w21 | head -1
PASSPHRASE="none"
if [ $PASSPHRASE != "none" ]
then
export PASSPHRASE
else
echo "Please set a passphrase in the script"
exit 1
fi
# encryption algorithm for gpg, disable for default (CAST5)
# see available ones via 'gpg --version'