fi
         REPO="${NAME_SERVER}:${NAME_REPO}"
         while true; do
+            if [ -z "${BORG_PASSPHRASE}" ]; then
+                stty -echo
+                printf "Borg passphrase: "
+                read passphrase
+                stty echo
+                printf "\n"
+                export BORG_PASSPHRASE="${passphrase}"
+            fi 
             set +e
             ARCHIVES=$(borg list "${REPO}")  # separate step so we may fail early on bad passphrase
             RESULT=$?
                 echo "Aborting due to unexpected ${NAME_BORGAPP} error."
                 exit 1
             else
-                stty -echo
-                printf "Borg passphrase: "
-                read passphrase
-                stty echo
-                printf "\n"
-                export BORG_PASSPHRASE="${passphrase}"
+                export BORG_PASSPHRASE=""
             fi
         done
         ARCHIVE=$(echo "${ARCHIVES}" | grep "${NAME_ARCHIVE}" | tail -1 | cut -f1 -d' ')