mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-07-27 06:04:38 +02:00
Update BackupAndUpdate.rsc
This commit is contained in:
parent
4bd912658b
commit
3a1aae13b9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue