在System->Scheduler里,添加一个Scheduler:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| :global mailip :set mailip [:resolve smtp.163.com] :global mailuser "XXX" :global mailpw "XXX" :global Tomail "XXX@163.com /tool e-mail set from=XXX@163.com address=$mailip user=$mailuser password=$mailpw port=25 /export file=jq /sys backup save name=jq :delay 10 /tool e-mail send file=jq.rsc to=$Tomail body="$[/system clock get date] $[/system clock get time]" subject="配置文本文件rsc—$[/system clock get date] $[/system clock get time] " /tool e-mail send file=jq.backup to=$Tomail body=" $[/system clock get date] $[/system clock get time]" subject="配置文件backup—$[/system clock get date] $[/system clock get time] " :delay 10 /file rem jq.rsc /file rem jq.backup :log info (“备份文件已发送 " . [/sys cl get time] . " " . [/sys cl get date])
|