Mikrotik Auto Backup Via Email | MTCNA | Lecture 5

Mikrotik Auto Backup Via Email | MTCNA | Lecture 5

Kamran Awan

54 года назад

737 Просмотров

For checking email configuration, send a test mail from MikroTik with below cmd:/tool e-mail
send to=Your [email protected] subject=”email test” body=”email test”

Script:

:local emailAddress "Your [email protected]"
:log info "BACKUP STARTING NOW"
:global backupfile ([/system identity get name] . "-" . [/system clock get time])
/system backup save name=$backupfile
:log info "BACKUP FILE SAVED, SENDING EMAIL IN 2 SECONDS"
:delay 2s
/tool e-mail send to="Your [email protected]" subject=([/system identity get name] . " Backup " . [/system clock get date] . " " . [/system clock get time]) file=$backupfile
:delay 15s
:log info "BACKUP EMAIL SENT, REMOVING BACKUP FILE"
/file remove $backupfile
:log info "BACKUP FINISHED"



#mikrotik
#mtcna
#OnlineITEducation
#OnlineEducation
#ITEducation
#Kamranawan

Тэги:

#IT_education #mikrotik_auto_backup #mikrotik_backup_script #mikrotik_backup #mikrotik_router_auto_backup_via_email #mikrotik_email_backup_script #mikrotik_backup_send_email #mikrotik_backup_config #how_to_send_automatic_mikrotik_backup_via_email #how_to_send_mikrotik_backup_e-mail #backup_mikrotik #mikrotik_router_backup #script_backup_mikrotik #generate_backup_and_send_it_by_e-mail_-_mikrotik #email_backup #backup_mikrotik_kirim_ke_email #mikrotik_in_urdu #mikrotik_in_hindi
Ссылки и html тэги не поддерживаются


Комментарии: