mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-07-29 23:26:10 +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
10
v3.rsc
10
v3.rsc
|
@ -28,11 +28,11 @@
|
|||
#
|
||||
# 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.
|
||||
:local scriptMode "osupdate"
|
||||
:local scriptMode "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.
|
||||
:local forceBackup true
|
||||
:local forceBackup false
|
||||
|
||||
## Backup encryption password, no encryption if no password.
|
||||
:local backupPassword ""
|
||||
|
@ -416,10 +416,8 @@
|
|||
## Combine date and time → `YYYY-MM-DD-hh-mm-ss` or `YYYY-Mon-DD-hh-mm-ss`
|
||||
:local currentDateTime ($currentDate . "-" . $currentTime)
|
||||
|
||||
|
||||
#####
|
||||
|
||||
|
||||
:local deviceBoardName [/system resource get board-name]
|
||||
|
||||
## Check if it's a cloud hosted router or a hardware based device
|
||||
|
@ -742,4 +740,6 @@
|
|||
}
|
||||
|
||||
: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