Look at the mt wiki in the Google results.  Some like Yabus

On 6/19/09, rabbtux rabbtux <rabb...@gmail.com> wrote:
> Thanks Scott.  I was thinking of something to search out and delete files
> with certain extensions.  Why not just keep overwriting the old files with
> the same name, Doh!  I didn't want to collect a zillion files locally.
> Will start adding this to my snapshot system shortly...
>
> Josh, I was not searching for backup scripts, but the commands to delete a
> specific file type from a mt system.  Interesting URL.
>
> On Fri, Jun 19, 2009 at 10:37 AM, Scott Reed
> <scottr...@onlyinternet.net>wrote:
>
>> Script can backup everything on MT, so I am not sure what you mean by
>> "email scripts do not."  Maybe the scripts you have don't, but they
>> can.  I create about 4 files on some of my routers and e-mail them to
>> myself.  I also have a unix expect script that goes and gets them, so
>> you can do what ever you want.
>>
>> Normal command to remove a file from telnet./ssh:
>>  / file remove filename
>>
>> Not sure you need that either.  If you create a new backup with the same
>> name every time, it overwrites the old one, just like any other OS.
>> /sys backup save name=filename
>>
>> Export is similar.  Go to the level to export
>> export file=filename
>>
>> If you want to give me specifics off-list about what you want, I can
>> probably give you the commands you need or put together a script in a
>> couple of minutes
>> rabbtux rabbtux wrote:
>> > Thanks Brad,
>> > I know all about the MT backup scripts to email, etc.  The advantage to
>> this
>> > system is that for a new system to work, I install an ssh key on the MT
>> and
>> > one line on the backup server.  This system also backs up all the
>> > hotspot
>> > and other files that are on the MT, email scripts do not.
>> >
>> > Basically i need the terminal commands to remove the two file types.
>> > Rsnapshot can execute a few commands, just as if you SSHed in to the MT
>> > prior to the sftp backup.
>> >
>> > On Fri, Jun 19, 2009 at 10:08 AM, Scott Reed <scottr...@onlyinternet.net
>> >wrote:
>> >
>> >
>> >> Normal ftp commands should work.  MT is a little different in that
>> >> files
>> >> are not really in directories, they just look like it.  I think if you
>> >> do a delete with full path and full filename it will work.
>> >>
>> >> You could also write a script on the MT that does everything you want
>> >> every night.  Then your backup program just sucks up what the router
>> >> created.  Scripting uses exactly the same command format as the command
>> >> line, unless you try to get fancy.
>> >>
>> >> Brad Belton wrote:
>> >>
>> >>> I would be interested in this as well.  Please share on-list!
>> >>>
>> >>> Thanks,
>> >>>
>> >>>
>> >>> Brad
>> >>>
>> >>>
>> >>> -----Original Message-----
>> >>> From: wireless-boun...@wispa.org [mailto:wireless-boun...@wispa.org]
>> On
>> >>> Behalf Of rabbtux rabbtux
>> >>> Sent: Friday, June 19, 2009 11:27 AM
>> >>> To: WISPA General List
>> >>> Subject: [WISPA] MT backup system, need script clues
>> >>>
>> >>> All,
>> >>>
>> >>> I've used the excellent open source backup program, rsnapshot, for
>> years
>> >>> with good results.  I recently noticed that routeros supports sftp.
>>  I'd
>> >>> like to get snapshot backups of all our APs.  Here's how it would
>> >>> work:
>> >>> Rsnapshot can run a few commands on each system before backing up the
>> >>>
>> >> file
>> >>
>> >>> system.  I'd like to 1) remove all *.backup and *.rsc files. 2) run a
>> >>>
>> >> fresh
>> >>
>> >>> binary backup, followed by a text export.  3) The normal rsnapshot
>> >>>
>> >> function
>> >>
>> >>> resumes getting a copy of the filesystem.
>> >>>
>> >>> Just having trouble putting the parts of the pre-run MT script.
>> >>> Specifically how to delete the existing backup files.
>> >>>
>> >>> Any Hints appreciated, as everyone could use this 'full seatbelt"
>> backup
>> >>> solution.  It includes daily changes to any file or configuration
>> changes
>> >>>
>> >> on
>> >>
>> >>> each routeros system.
>> >>>
>> >>> Thanks,
>> >>> Marshall
>> >>> Rabbit Meadows Technology
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> ----------------------------------------------------------------------------
>> >>
>> >>> ----
>> >>> WISPA Wants You! Join today!
>> >>> http://signup.wispa.org/
>> >>>
>> >>>
>> >>
>> ----------------------------------------------------------------------------
>> >>
>> >>> ----
>> >>>
>> >>> WISPA Wireless List: wireless@wispa.org
>> >>>
>> >>> Subscribe/Unsubscribe:
>> >>> http://lists.wispa.org/mailman/listinfo/wireless
>> >>>
>> >>> Archives: http://lists.wispa.org/pipermail/wireless/
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> --------------------------------------------------------------------------------
>> >>
>> >>> WISPA Wants You! Join today!
>> >>> http://signup.wispa.org/
>> >>>
>> >>>
>> >>
>> --------------------------------------------------------------------------------
>> >>
>> >>> WISPA Wireless List: wireless@wispa.org
>> >>>
>> >>> Subscribe/Unsubscribe:
>> >>> http://lists.wispa.org/mailman/listinfo/wireless
>> >>>
>> >>> Archives: http://lists.wispa.org/pipermail/wireless/
>> >>>
>> >>>
>> ------------------------------------------------------------------------
>> >>>
>> >>>
>> >>> No virus found in this incoming message.
>> >>> Checked by AVG - www.avg.com
>> >>> Version: 8.5.372 / Virus Database: 270.12.80/2187 - Release Date:
>> >>>
>> >> 06/19/09 06:53:00
>> >>
>> >>>
>> >> --
>> >> Scott Reed
>> >> Sr. Systems Engineer
>> >> GAB Midwest
>> >> 1-800-363-1544 x4000
>> >> Cell: 260-273-7239
>> >>
>> >>
>> >>
>> >>
>> >>
>> --------------------------------------------------------------------------------
>> >> WISPA Wants You! Join today!
>> >> http://signup.wispa.org/
>> >>
>> >>
>> --------------------------------------------------------------------------------
>> >>
>> >> WISPA Wireless List: wireless@wispa.org
>> >>
>> >> Subscribe/Unsubscribe:
>> >> http://lists.wispa.org/mailman/listinfo/wireless
>> >>
>> >> Archives: http://lists.wispa.org/pipermail/wireless/
>> >>
>> >>
>> >
>> >
>> >
>> --------------------------------------------------------------------------------
>> > WISPA Wants You! Join today!
>> > http://signup.wispa.org/
>> >
>> --------------------------------------------------------------------------------
>> >
>> > WISPA Wireless List: wireless@wispa.org
>> >
>> > Subscribe/Unsubscribe:
>> > http://lists.wispa.org/mailman/listinfo/wireless
>> >
>> > Archives: http://lists.wispa.org/pipermail/wireless/
>> >
>> > ------------------------------------------------------------------------
>> >
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG - www.avg.com
>> > Version: 8.5.372 / Virus Database: 270.12.80/2187 - Release Date:
>> 06/19/09 06:53:00
>> >
>> >
>>
>> --
>> Scott Reed
>> Sr. Systems Engineer
>> GAB Midwest
>> 1-800-363-1544 x4000
>> Cell: 260-273-7239
>>
>>
>>
>>
>> --------------------------------------------------------------------------------
>> WISPA Wants You! Join today!
>> http://signup.wispa.org/
>>
>> --------------------------------------------------------------------------------
>>
>> WISPA Wireless List: wireless@wispa.org
>>
>> Subscribe/Unsubscribe:
>> http://lists.wispa.org/mailman/listinfo/wireless
>>
>> Archives: http://lists.wispa.org/pipermail/wireless/
>>
>
>
> --------------------------------------------------------------------------------
> WISPA Wants You! Join today!
> http://signup.wispa.org/
> --------------------------------------------------------------------------------
>
> WISPA Wireless List: wireless@wispa.org
>
> Subscribe/Unsubscribe:
> http://lists.wispa.org/mailman/listinfo/wireless
>
> Archives: http://lists.wispa.org/pipermail/wireless/
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


--------------------------------------------------------------------------------
WISPA Wants You! Join today!
http://signup.wispa.org/
--------------------------------------------------------------------------------
 
WISPA Wireless List: wireless@wispa.org

Subscribe/Unsubscribe:
http://lists.wispa.org/mailman/listinfo/wireless

Archives: http://lists.wispa.org/pipermail/wireless/

Reply via email to