Community discussions

MikroTik App
 
jahz007
just joined
Topic Author
Posts: 10
Joined: Thu Oct 19, 2006 9:27 pm

Readable Backup Script

Thu Jun 17, 2010 5:41 pm

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.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8370
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Readable Backup Script

Thu Jun 17, 2010 8:04 pm

use
/export file=out.rsc
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
jahz007
just joined
Topic Author
Posts: 10
Joined: Thu Oct 19, 2006 9:27 pm

Re: Readable Backup Script

Thu Jun 17, 2010 8:23 pm

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?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8370
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Readable Backup Script

Thu Jun 17, 2010 9:52 pm

just replace /system backup save name=XXX with that command
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
samcarney
just joined
Posts: 17
Joined: Thu Sep 04, 2008 9:30 pm

Re: Readable Backup Script

Mon Jul 26, 2010 3:16 am

Is there any tricks to just pull certain information in this file? I don't need 95% of whats in it.
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Readable Backup Script

Mon Jul 26, 2010 3:40 am

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);

Who is online

Users browsing this forum: SiB and 50 guests