#1

Generate backup and send it by e-mail

This script generates backup file and sends it to specified e-mail address. Mail subject contains router's name, current date and time.


Note that smtp server must be configured before this script can be used. See /tool e-mail for configuration options.


Script:

/system backup save name=email_backup

/tool e-mail send file=email_backup.backup to="[email protected]" body="See attached file" \

   subject="$[/system identity get name] $[/system clock get time] $[/system clock get date] Backup")


 Note: backup file contains sensitive information like passwords. So to get access to generated backup file, script or scheduler must have 'sensitive' policy.




--Forum Rules --BBcodes


image quote pre code