mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-12-23 02:29:30 +00:00
New version
Added ability to set backup encryption password and choose update channel.
This commit is contained in:
parent
d09140835f
commit
a81121d779
7 changed files with 146 additions and 116 deletions
30
README.md
30
README.md
|
|
@ -1,4 +1,28 @@
|
|||
# Mikrotik scripts
|
||||
Useful scripts for MikroTik RouterOS
|
||||
# Mikrotik Firmware Auto Updater
|
||||
Script automatically updates router to the latest firmware.
|
||||
When script finds new uptate it sends email notification that upgrade process has started, system backup and config file are in attachment. After firmware and routerboard got updated, it sends second email which tells that upgrade process has been finished.
|
||||
|
||||
## [Auto update, backup and email notification](https://github.com/beeyev/mikrotik/tree/master/Auto-Upgrade)
|
||||
## How to use
|
||||
##### 1. Create new script
|
||||
System -> Scripts [Add]
|
||||
**Imprtant! ** Script name has to be **firmware-updater**
|
||||
Put script source and **set your email address** to the variable *emailAddress*
|
||||

|
||||
|
||||
##### 2. Configure mail server
|
||||
Tools -> Email
|
||||
Set your email server parameters. If you don't have one, i recommend to use [smtp2go.com](https://smtp2go.com "smtp2go.com") service, it allows to send thousand emails per month for free.
|
||||

|
||||
|
||||
##### 3. Create scheduled task
|
||||
System -> Scheduler [Add]
|
||||
Name: Firmware Updater
|
||||
Start Time: 03:00:00
|
||||
Interval: 1d 00:00:00
|
||||
On Event: /system script run firmware-updater;
|
||||

|
||||
|
||||
Or you can use this command to create the task:
|
||||
```
|
||||
/system scheduler add name="Firmware Updater" on-event="/system script run firmware-updater;" start-time=03:00:00 interval=1d comment="" disabled=no
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue