mirror of
https://github.com/laspavel/mikrotik-scripts.git
synced 2025-07-30 23:54:27 +02:00
Add console output scripts
This commit is contained in:
parent
34f3ddb148
commit
299a944ab9
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,6 @@
|
|||
:delay 2s
|
||||
|
||||
#email copies
|
||||
:log info "Emailing backups"
|
||||
:local time [/system clock get time]
|
||||
/tool e-mail send to=$"toemail" subject="[$sysname Config Backup] $time $date" file=($"backupfilename",$"textfilename") body="Uptime: $uptime"
|
||||
|
||||
|
@ -43,6 +42,9 @@
|
|||
/file remove $textfilename
|
||||
/file remove $backupfilename
|
||||
|
||||
:log info "Backups created."
|
||||
:put "Backups created."
|
||||
|
||||
} on-error={
|
||||
/log error "***** AUTOBACKUP script finished with error ******"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue