User Tools

Site Tools


networking:router:mikrotik_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:router:mikrotik_backup [2020/10/26 12:18]
gcooper
networking:router:mikrotik_backup [2022/11/22 14:25] (current)
gcooper
Line 28: Line 28:
 :local emailusername "validusername"; :local emailusername "validusername";
 :local emailpassword "validpassword"; :local emailpassword "validpassword";
-:local emailport "587"; 
  
 /tool e-mail set from="$emailfrom" address="$emailserverip"\ /tool e-mail set from="$emailfrom" address="$emailserverip"\
-   port="$emailport" start-tls=yes user="$emailusername" password="$emailpassword";+   port=587 tls=starttls user="$emailusername" password="$emailpassword";
 </file> </file>
  
Line 47: Line 46:
 :log info "Finished backing up configuration, sending e-mail"; :log info "Finished backing up configuration, sending e-mail";
 :local files {($SYSname . ".backup");($SYSname . ".rsc")}; :local files {($SYSname . ".backup");($SYSname . ".rsc")};
-/tool e-mail send to="you@yourdomain.tld" start-tls=yes subject=($SYSname . " backup") file=$files;+/tool e-mail send to="you@yourdomain.tld" tls=starttls subject=($SYSname . " backup"
 +  body="See attached backup files." file=$files;
 :log info "Backup pausing for 10s"; :log info "Backup pausing for 10s";
 :delay 10s; :delay 10s;
 :log info "Removing backup file"; :log info "Removing backup file";
-:put "Removing backup files";+:put "Removing backup file";
 /file remove ($SYSname . ".backup"); /file remove ($SYSname . ".backup");
 /file remove ($SYSname . ".rsc"); /file remove ($SYSname . ".rsc");
 :log info "Finished Backup Script"; :log info "Finished Backup Script";
 </file> </file>
networking/router/mikrotik_backup.1603736289.txt.gz · Last modified: 2020/10/26 12:18 by gcooper