diff --git a/backup-email.rsc b/backup-email.rsc index 76a504ca..6eb4ea16 100644 --- a/backup-email.rsc +++ b/backup-email.rsc @@ -15,7 +15,6 @@ do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50; :local ScriptName [ :jobname ]; - :global BackupFileNameDate; :global BackupPassword; :global BackupRandomDelay; :global BackupSendBinary; @@ -69,9 +68,7 @@ # filename based on identity :local DirName ("tmpfs/" . $ScriptName); - :local Clock [ /system/clock/get ]; - :local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse ($BackupFileNameDate = true) \ - ("-" . $Clock->"date" . "-" . $Clock->"time" . "-" . $Clock->"gmt-offset") "" ] ) ]; + :local FileName [ $CleanName ($Identity . "." . $Domain) ]; :local FilePath ($DirName . "/" . $FileName); :local BackupFile "none"; :local ExportFile "none"; diff --git a/backup-upload.rsc b/backup-upload.rsc index 7ad1c289..52ff3587 100644 --- a/backup-upload.rsc +++ b/backup-upload.rsc @@ -16,7 +16,6 @@ do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50; :local ScriptName [ :jobname ]; - :global BackupFileNameDate; :global BackupPassword; :global BackupRandomDelay; :global BackupSendBinary; @@ -69,9 +68,7 @@ # filename based on identity :local DirName ("tmpfs/" . $ScriptName); - :local Clock [ /system/clock/get ]; - :local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse ($BackupFileNameDate = true) \ - ("-" . $Clock->"date" . "-" . $Clock->"time" . "-" . $Clock->"gmt-offset") "" ] ) ]; + :local FileName [ $CleanName ($Identity . "." . $Domain) ]; :local FilePath ($DirName . "/" . $FileName); :local BackupFile "none"; :local ExportFile "none"; diff --git a/doc/backup-email.md b/doc/backup-email.md index 4773edf2..a8dfe0b9 100644 --- a/doc/backup-email.md +++ b/doc/backup-email.md @@ -34,7 +34,6 @@ Configuration The configuration goes to `global-config-overlay`, these are the parameters: -* `BackupFileNameDate`: whether to add date & time in filenames * `BackupSendBinary`: whether to send binary backup * `BackupSendExport`: whether to send configuration export * `BackupSendGlobalConfig`: whether to send `global-config-overlay` diff --git a/doc/backup-upload.md b/doc/backup-upload.md index f4c5e08f..c2e5c391 100644 --- a/doc/backup-upload.md +++ b/doc/backup-upload.md @@ -40,7 +40,6 @@ Configuration The configuration goes to `global-config-overlay`, these are the parameters: -* `BackupFileNameDate`: whether to add date & time in filenames * `BackupSendBinary`: whether to send binary backup * `BackupSendExport`: whether to send configuration export * `BackupSendGlobalConfig`: whether to send `global-config-overlay` diff --git a/global-config.rsc b/global-config.rsc index 0bb572b5..12c85916 100644 --- a/global-config.rsc +++ b/global-config.rsc @@ -90,9 +90,7 @@ # Toggle this to disable color output in terminal/cli. :global TerminalColorOutput true; -# This defines whether to add date & time in filenames, what backups to generate, -# the password to use, and what random delay (between 0 and given seconds) to apply. -:global BackupFileNameDate false; +# This defines what backups to generate and what password to use. :global BackupSendBinary false; :global BackupSendExport true; :global BackupSendGlobalConfig true; diff --git a/global-functions.rsc b/global-functions.rsc index 77f0703e..41a57e8d 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -15,7 +15,7 @@ # Git commit id & info, expected configuration version :global CommitId "unknown"; :global CommitInfo "unknown"; -:global ExpectedConfigVersion 143; +:global ExpectedConfigVersion 142; # global variables not to be changed by user :global GlobalFunctionsReady false; diff --git a/ipv6-update.rsc b/ipv6-update.rsc index c8926ab4..1f388778 100644 --- a/ipv6-update.rsc +++ b/ipv6-update.rsc @@ -49,7 +49,7 @@ :local Pool [ /ipv6/pool/get [ find where prefix=$PdPrefix ] name ]; :if ([ :len [ /ipv6/firewall/address-list/find where comment=("ipv6-pool-" . $Pool) ] ] = 0) do={ /ipv6/firewall/address-list/add list=("ipv6-pool-" . $Pool) address=:: comment=("ipv6-pool-" . $Pool) dynamic=yes; - $LogPrint info $ScriptName ("Added dynamic ipv6 address list entry for ipv6-pool-" . $Pool); + $LogPrint warning $ScriptName ("Added dynamic ipv6 address list entry for ipv6-pool-" . $Pool); } :local AddrList [ /ipv6/firewall/address-list/find where comment=("ipv6-pool-" . $Pool) ]; :local OldPrefix [ /ipv6/firewall/address-list/get ($AddrList->0) address ]; diff --git a/news-and-changes.rsc b/news-and-changes.rsc index ed60a6c2..2c1a0272 100644 --- a/news-and-changes.rsc +++ b/news-and-changes.rsc @@ -67,7 +67,6 @@ 140="The scripts 'lease-script' was renamed to 'dhcpv4-server-lease', configuration was updated automatically."; 141="Introduced script 'dhcpv6-client-lease' to run several scripts on IPv6 DHCP client lease."; 142="Added a setting for 'mod/notification-email' to check availability of certificate chain."; - 143="Made backup scripts 'backup-email' and 'backup-upload' support date & time in filenames."; }; # Migration steps to be applied on script updates