Community discussions

MikroTik App
 
farinha
just joined
Topic Author
Posts: 1
Joined: Tue Feb 05, 2013 12:24 pm

Scripting Backup to FTP

Mon Jun 24, 2013 11:37 pm

I am creating a script to backup and ftp, would when creating the backup file was inserted the name of the system for better identification, eg:
/ip routes export file=$GlobalVariable
But when running the script is not generating the file, I think it is a problem in assigning the name to be a variable, does anyone have any idea how to accomplish the task is?
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Scripting Backup to FTP

Tue Jun 25, 2013 6:14 am

/ip route export file=$GlobalVariable
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: Scripting Backup to FTP

Fri Aug 09, 2013 8:20 am

use this...

/export file="$[/system identity get name]"

Who is online

Users browsing this forum: Google [Bot], GoogleOther [Bot] and 22 guests