#定义全局变量
#http://checkip.dyndns.org/
:local from “####@gmail.com”
:local user “####@gmail.com”
:local password “#####”
:local to “####@gmail.com”
#只需要更改cc 后"“中为客户的邮箱即可
:local cc “#####@gmail.com”
:local address “74.125.68.108”
:local router “Dormitory_PPPOE_SERVER”
#ROS 系统备份
/system backup save name=(KaTeX parse error: Expected 'EOF', got '#' at position 127: … date] 4 6]); #̲ROS UserMan数据库备…router.”-".[:pick [/system clock get date] 7 11].[:pick [/system clock get date] 0 3].[:pick [/system clock get date] 4 6]);
#延迟1秒,目的是文件已经备份好了,然后再执行下面的步骤,否则下面的步骤发现没有备份文件时报错,从而导致你的脚本失效
:delay 1;
#把系统备份发送到邮箱
/tool e-mail send server=( a d d r e s s ) p o r t = 587 c c = ( address) port=587 cc=( address)port=587cc=(cc) from=( f r o m ) u s e r = ( from) user=( from)user=(user) password=( p a s s w o r d ) t o = ( password) to=( password)to=(to) subject=( r o u t e r . " − " . [ : p i c k [ / s y s t e m c l o c k g e t d a t e ] 711 ] . [ : p i c k [ / s y s t e m c l o c k g e t d a t e ] 03 ] . [ : p i