From 785b984de909179055a86d699c3380c7753eb3f5 Mon Sep 17 00:00:00 2001 From: Martin Gebhardt Date: Sun, 22 Mar 2015 18:16:12 +0100 Subject: [PATCH] use openssl to generate passphrase --- backup-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-server.sh b/backup-server.sh index 6c536aa..2954d5f 100644 --- a/backup-server.sh +++ b/backup-server.sh @@ -50,7 +50,7 @@ LOGDIR='/var/log/duplicity' # must exist # Setting the pass phrase to encrypt the backup files. Will use symmetrical keys in this case. # Set one Password per Backup -PASSPHRASE=$(date|md5sum|awk '{print $1}') +PASSPHRASE=$(/usr/bin/openssl rand -base64 21) export PASSPHRASE # encryption algorithm for gpg, disable for default (CAST5)