diff --git a/src/freedombone-utils-backup b/src/freedombone-utils-backup
index 1f9a781090eac1e1e228bc64d2be234cc2bcfb0b..c6eb5e2c0c41adfc41aac564fb18c25e8be9eeaf 100755
--- a/src/freedombone-utils-backup
+++ b/src/freedombone-utils-backup
@@ -77,6 +77,9 @@ function configure_backup_key {
         return
     fi
 
+    gpg_agent_setup root
+    gpg_agent_setup $MY_USERNAME
+
     # Generate a GPG key for backups
     BACKUP_KEY_EXISTS=$(gpg_key_exists "$MY_USERNAME" "$MY_NAME (backup key)")
     if [[ $BACKUP_KEY_EXISTS == "no" ]]; then