From 312cffd1191c2b92eb3030b3e7f4c4ed29360f24 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 5 Aug 2019 22:34:09 +0200 Subject: [PATCH] Feat: add cat passphrase --- files/dd_borg/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/dd_borg/run.sh b/files/dd_borg/run.sh index 545ce14..aa9843d 100644 --- a/files/dd_borg/run.sh +++ b/files/dd_borg/run.sh @@ -56,6 +56,7 @@ BORG_OPTS="--stats --one-file-system --compression lz4 --checkpoint-interval 864 # Set BORG_PASSPHRASE or BORG_PASSCOMMAND somewhere around here, using export, # if encryption is used. +export BORG_PASSPHRASE="`cat /etc/backups/passphrase`" # No one can answer if Borg asks these questions, it is better to just fail quickly # instead of hanging.