Community discussions

MikroTik App
 
ilpastore
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Mar 24, 2007 1:08 am
Location: Italy

backup over ftp?

Thu Mar 06, 2008 3:29 am

HI!

Is there any script to send automatic backup (system backup) on an internal (LAN) Ftp server?

I see many post and guides to send by email, but I preffer ftp

anyone can help me?

thx and rgds
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: backup over ftp?

Thu Mar 06, 2008 4:26 am

No.

One approach would be to schedule a script to create the backup.
Then on your backup server setup an automated FTP script to fetch the backup off of the router.

At the moment I use the e-mail backup option but also wish FTPing files could be done from one script right on the router.

-Louis
 
User avatar
yarda
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Tue May 22, 2007 4:58 pm
Location: Czech Republic - Southern Bohemia
Contact:

Re: backup over ftp?

Thu Mar 06, 2008 12:26 pm

HI!

Is there any script to send automatic backup (system backup) on an internal (LAN) Ftp server?

I see many post and guides to send by email, but I preffer ftp

anyone can help me?

thx and rgds
Resolution on our company is do some linux machine with FTP server (in our pure-ftpd with mysql support). At 4am we execute cron which done simple php script to walk on mysql list of routerboard which connect to ftp clients (routerboard & PC) and download file named for example backup which is created every 8 hour by tik scheduler. It run absolutly perfect. Downloaded data are packed to tar and storage as DATE_IPADDRESS.TAR on linux machine. If i need backup, i look on web where are listed last packages and download them. Thats all. 8)
 
ilpastore
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Mar 24, 2007 1:08 am
Location: Italy

Re: backup over ftp?

Thu Mar 06, 2008 7:04 pm

cool guy, but so strange that is the only way....

bwah..... I don't want emails
 
User avatar
smurphy
Member Candidate
Member Candidate
Posts: 103
Joined: Wed Feb 06, 2008 6:48 pm
Location: Clermont / France
Contact:

Re: backup over ftp?

Thu Mar 20, 2008 6:59 pm

Well - as I already have a backup server at home - I rather do it the other way around.
I wrote it down in my FAQ, maybe it can be an option for you.
https://stargate.solsys.org/mod.php?mod ... faq_id=128
 
Wyoming
Member Candidate
Member Candidate
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

Re: backup over ftp?

Thu Mar 27, 2008 7:10 am

For my solution I wrote a Perl script that use telnet and ftp. The script has a config file and a list file that contains all the information needed to login to the mikrotiks and a list of the IPs of the mikrotiks. The perl script then runs through the list of mikrotik IPs and logs into them via telnet creates the backup file and then ftps the file off the mikrotik a directory on the machine running perl. It has worked really well for me for quite some time now. I will try to get the script uploaded to the wiki in the next few days.