mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
email-backup: no example address, complain if missing
This commit is contained in:
@@ -27,6 +27,10 @@ $WaitFullyConnected;
|
|||||||
$LogPrintExit error ("Configured to send neither backup nor config export.") true;
|
$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
|
# filename based on identity
|
||||||
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
||||||
:local BackupFile "none";
|
:local BackupFile "none";
|
||||||
|
@@ -43,8 +43,8 @@
|
|||||||
:global BackupSendExport true;
|
:global BackupSendExport true;
|
||||||
:global BackupPassword "v3ry-s3cr3t";
|
:global BackupPassword "v3ry-s3cr3t";
|
||||||
# These addresses are used to send backup and config export files to.
|
# These addresses are used to send backup and config export files to.
|
||||||
:global EmailBackupTo "mail@example.com";
|
:global EmailBackupTo "";
|
||||||
:global EmailBackupCc "another@example.com";
|
:global EmailBackupCc "";
|
||||||
# These credentials are used to upload backup and config export files.
|
# These credentials are used to upload backup and config export files.
|
||||||
# SFTP authentication is tricky, you may have to limit authentication
|
# SFTP authentication is tricky, you may have to limit authentication
|
||||||
# methods for your SSH server.
|
# methods for your SSH server.
|
||||||
|
Reference in New Issue
Block a user