static passphrase
This commit is contained in:
parent
d58bc3bb04
commit
c5f72997f8
1 changed files with 11 additions and 3 deletions
|
@ -51,8 +51,16 @@ LOGDIR='/var/log/duplicity' # must exist
|
||||||
|
|
||||||
# Setting the passphrase 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
|
# Set one Password per Backup
|
||||||
PASSPHRASE=$(dd if=/dev/urandom 2>/dev/null | tr -cd '[:alnum:]' | fold -w21 | head -1)
|
# 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
|
export PASSPHRASE
|
||||||
|
else
|
||||||
|
echo "Please set a passphrase in the skript"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# encryption algorithm for gpg, disable for default (CAST5)
|
# encryption algorithm for gpg, disable for default (CAST5)
|
||||||
# see available ones via 'gpg --version'
|
# see available ones via 'gpg --version'
|
||||||
|
|
Loading…
Reference in a new issue