mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-08-01 08:34:38 +02:00
Change script mode to 'osnotify' and disable forced backups; enhance final report logging
This commit is contained in:
parent
62b059039a
commit
4002d4a969
1 changed files with 5 additions and 5 deletions
8
v3.rsc
8
v3.rsc
|
@ -28,11 +28,11 @@
|
||||||
#
|
#
|
||||||
# osnotify - The script will send email notifications only (without backups) if a new RouterOS update is available.
|
# osnotify - The script will send email notifications only (without backups) if a new RouterOS update is available.
|
||||||
# Change parameter `forceBackup` if you need the script to create backups every time when it runs.
|
# Change parameter `forceBackup` if you need the script to create backups every time when it runs.
|
||||||
:local scriptMode "osupdate"
|
:local scriptMode "osnotify"
|
||||||
|
|
||||||
## Additional parameter if you set `scriptMode` to `osupdate` or `osnotify`
|
## Additional parameter if you set `scriptMode` to `osupdate` or `osnotify`
|
||||||
# Set `true` if you want the script to perform backup every time its fired, whatever script mode is set.
|
# Set `true` if you want the script to perform backup every time its fired, whatever script mode is set.
|
||||||
:local forceBackup true
|
:local forceBackup false
|
||||||
|
|
||||||
## Backup encryption password, no encryption if no password.
|
## Backup encryption password, no encryption if no password.
|
||||||
:local backupPassword ""
|
:local backupPassword ""
|
||||||
|
@ -416,10 +416,8 @@
|
||||||
## Combine date and time → `YYYY-MM-DD-hh-mm-ss` or `YYYY-Mon-DD-hh-mm-ss`
|
## Combine date and time → `YYYY-MM-DD-hh-mm-ss` or `YYYY-Mon-DD-hh-mm-ss`
|
||||||
:local currentDateTime ($currentDate . "-" . $currentTime)
|
:local currentDateTime ($currentDate . "-" . $currentTime)
|
||||||
|
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
||||||
|
|
||||||
:local deviceBoardName [/system resource get board-name]
|
:local deviceBoardName [/system resource get board-name]
|
||||||
|
|
||||||
## Check if it's a cloud hosted router or a hardware based device
|
## Check if it's a cloud hosted router or a hardware based device
|
||||||
|
@ -743,3 +741,5 @@
|
||||||
|
|
||||||
:log info "$SMP Final report email sent successfully, and the script has finished."
|
:log info "$SMP Final report email sent successfully, and the script has finished."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:log info "$SMP the script has finished, script step: `$scriptStep` \n\n"
|
Loading…
Add table
Add a link
Reference in a new issue