This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_backup [2020/05/12 08:47] gcooper |
networking:router:mikrotik_backup [2022/11/22 14:25] (current) gcooper |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== Automated Backup ===== | ===== Automated Backup ===== | ||
+ | |||
+ | {{: | ||
==== E-Mail Settings ==== | ==== E-Mail Settings ==== | ||
- | {{: | + | Sending e-mail is sensitive due to security. |
< | < | ||
- | /tool e-mail set from=" | + | # Edit Mail Settings |
- | port=" | + | :local emailserverip " |
+ | :local emailfrom "XYZ Router < | ||
+ | :local emailto " | ||
+ | :local emailusername " | ||
+ | :local emailpassword " | ||
+ | |||
+ | /tool e-mail set from=" | ||
+ | port=587 tls=starttls | ||
</ | </ | ||
==== makebackup Script ==== | ==== makebackup Script ==== | ||
- | |||
- | {{ : | ||
< | < | ||
Line 34: | Line 41: | ||
:put " | :put " | ||
/system backup save name=" | /system backup save name=" | ||
+ | /export file=" | ||
:log info " | :log info " | ||
:delay 10s; | :delay 10s; | ||
:log info " | :log info " | ||
- | /tool e-mail send to="router@sonoracomm.com" | + | :local files {($SYSname . " |
+ | /tool e-mail send to="you@yourdomain.tld" tls=starttls | ||
+ | body="See attached | ||
:log info " | :log info " | ||
:delay 10s; | :delay 10s; | ||
Line 43: | Line 53: | ||
:put " | :put " | ||
/file remove ($SYSname . " | /file remove ($SYSname . " | ||
+ | /file remove ($SYSname . " | ||
:log info " | :log info " | ||
</ | </ |