Readable Backup Script

Hello,

Does anyone have a backup script that will send a “readable” attachement via email? Also, one that can be setup to run on a weekly schedule? I have a backup script now, that works fine, but the backup file is not “readable”. and can only be used as a backup on router that is the exact same model board. Any help would be appriciated.

use

/export file=out.rsc

Thanks.. I can view this perfectly. Now, is there a way to incorporate this into my exisiting backup script (or create a new one)and have it email once a week?

just replace /system backup save name=XXX with that command

Is there any tricks to just pull certain information in this file? I don’t need 95% of whats in it.

Instead of running “/export”, run it on sections, like “/ip address export”. You will then have to either combine the files by reading them into variables and concatenating the variables, or just attach all the different files.

/ip address export file=ip-address
/ip dhcp-server export file=dhcp-server
:local ipAddress [/file get [/file find name=ip-address] content];
:local dhcpServer [/file get [/file find name=dhcp-server] content];
:local combined ($ipAddress . $dhcpServer);