aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--email-backup4
-rw-r--r--global-config4
2 files changed, 6 insertions, 2 deletions
diff --git a/email-backup b/email-backup
index d439d89..a60b701 100644
--- a/email-backup
+++ b/email-backup
@@ -27,6 +27,10 @@ $WaitFullyConnected;
$LogPrintExit error ("Configured to send neither backup nor config export.") true;
}
+:if ([ :len $EmailBackupTo ] = 0) do={
+ $LogPrintExit error ("Configuration is missing recipient for e-mail backup.") true;
+}
+
# filename based on identity
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
:local BackupFile "none";
diff --git a/global-config b/global-config
index a3e515c..4b20fbe 100644
--- a/global-config
+++ b/global-config
@@ -43,8 +43,8 @@
:global BackupSendExport true;
:global BackupPassword "v3ry-s3cr3t";
# These addresses are used to send backup and config export files to.
-:global EmailBackupTo "mail@example.com";
-:global EmailBackupCc "another@example.com";
+:global EmailBackupTo "";
+:global EmailBackupCc "";
# These credentials are used to upload backup and config export files.
# SFTP authentication is tricky, you may have to limit authentication
# methods for your SSH server.