Update BackupAndUpdate.rsc

This commit is contained in:
deniska-666 2024-03-23 14:07:43 +01:00 committed by GitHub
parent 4bd912658b
commit 3a1aae13b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@
## Update channel. Possible values: stable, long-term, testing, development ## Update channel. Possible values: stable, long-term, testing, development
:local updateChannel "stable"; :local updateChannel "stable";
## Install only patch versions of RouterOS updates. ## Installs only patch versions of RouterOS updates.
## Works only if you set scriptMode to "osupdate" ## Works only if you set scriptMode to "osupdate"
## Means that new update will be installed only if MAJOR and MINOR version numbers remained the same as currently installed RouterOS. ## Means that new update will be installed only if MAJOR and MINOR version numbers remained the same as currently installed RouterOS.
## Example: v6.43.6 => major.minor.PATCH ## Example: v6.43.6 => major.minor.PATCH
@ -341,7 +341,7 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
}; };
if ($forceBackup = true) do={ if ($forceBackup = true) do={
# In this case the script will always send email, because it has to create backups # In this case the script will always send an email, because it has to create backups
:set isSendEmailRequired true; :set isSendEmailRequired true;
} }
@ -396,7 +396,7 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
:set mailAttachments [$buGlobalFuncCreateBackups backupName=$backupNameFinal backupPassword=$backupPassword sensitiveDataInConfig=$sensitiveDataInConfig]; :set mailAttachments [$buGlobalFuncCreateBackups backupName=$backupNameFinal backupPassword=$backupPassword sensitiveDataInConfig=$sensitiveDataInConfig];
} else={ } else={
:log info ("$SMP There is no need to create a backup."); :log info ("$SMP Creating a backup is not necessary.");
} }
# Combine first step email # Combine first step email