Backup script not working on rb

There are many ways to do backups on MT Devices, are you specifically needing the one that you posted to work, or are you merely wanting a backup of your RB’s?

I have the following script that I run, it creates 2 files, 1 x backup file and 1 x .rsc export file.
It is has the requirement of an CTWUG Email account, which you can read up on here

I have configured, under /tool email:

The below runs as a /system schedule

/system backup save name="$[/system identity get name]";
/export file="$[/system identity get name]";
:delay 30;
/tool e-mail send to="xyz@ctwug.za.net" body="See attached file from. $[/system identity get name] $[/system clock get time] $[/system clock get date] Backup" subject="$[/system identity get name] 1/2 $[/system clock get time] $[/system clock get date] Backup" file="$[/system identity get name].rsc";
:delay 60;
/tool e-mail send to="xyz@ctwug.za.net" body="See attached file from. $[/system identity get name] $[/system clock get time] $[/system clock get date] Backup" subject="$[/system identity get name] 2/2 $[/system clock get time] $[/system clock get date] Backup" file="$[/system identity get name].backup";

This script does not remove the file from the RB, but does replace it on next run, so does not clutter your storage, also serves as an additional copy of the backup.

4 Likes