Community discussions

MikroTik App
 
archerfish
just joined
Topic Author
Posts: 13
Joined: Wed Apr 22, 2009 8:18 am

system backup function & hotspot login-servlet pages

Tue Oct 12, 2010 11:21 am

Hi All!

We have custom (edited) hotspot login-servlet html pages, and we are happy with them. Edit them from time to time, we want to have automatic backups of them. It seems that standard /system backup function doesnt include them - i tried to restore on blank filesystem, and these files were not appear.

So this is the question: is there any way to backup these files, besides copying all the tree via FTP?

PS: If the recursive FTP retrieval is the only way - could any one suggest me a proper ftp client for MS Windows with batch mode support?
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 1:10 am

You could use any FTP client (including the one built-in to windows) as well as any secure copy client (ex. Putty - pscp), WinSCP, among others.

Add: /system backup and /export ONLY backup configuration, not files accessible on the router.
Doug
 
archerfish
just joined
Topic Author
Posts: 13
Joined: Wed Apr 22, 2009 8:18 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 3:47 am

You could use any FTP client (including the one built-in to windows)
No, i cant. Hotspot servlet page consists of several pages, with overall folder depth = 2. So i need FTP-client with recursive retrieval support (passive mode also), which works well with mikrotik's FTP server. Built-in windows client does not support recursive fetch, and it doesn't even support passive FTP in batch mode! We tried NcFTP client, but it has serious problems with listing, so last version goes into infinite loop on recursion, and previous versions can go only on 1 level deep into folder tree on mikrotik FTP server. NcFTP client works well on recursion with ProFTPd, so it is only mikrotik problem i suppose.

Please, suggest some FTP-client:
0) which run on MS Windows (2008 Server)
1) with Passive FTP support in batch mode
2) with recursive retrieval support

PS: Since ssh service in 5.0beta doesnt work with keys, we cant use it (to copy files also).
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 4:16 am

I don't understand why the router would be the definitive repository, and you need to back up the files from the router. You don't edit the files on the router, you edit them on a computer and then upload them to the router - so you already have a copy of the files on that computer. The definitive repository of the Hotspot files should reside on a file server that is regularly backed up, and those backups shouldn't originate on the router.

That said: http://gnuwin32.sourceforge.net/packages/wget.htm
If you need to download something and wget supports the platform and protocol it is probably going to be an extremely decent choice.
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 4:22 am

I forgot about wget for windows. I use it Linux all time time. It's awesome.
Doug
 
archerfish
just joined
Topic Author
Posts: 13
Joined: Wed Apr 22, 2009 8:18 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 6:11 am

I don't understand why the router would be the definitive repository, and you need to back up the files from the router. You don't edit the files on the router, you edit them on a computer and then upload them to the router - so you already have a copy of the files on that computer. The definitive repository of the Hotspot files should reside on a file server that is regularly backed up, and those backups shouldn't originate on the router.
Thanks, i'll think that way.

We use Mercurial for configuration revision control on our regular unix servers. It was preferred because some personel doesnt take responsibility for their modifications of configs, so we have to know who made what. Export from mikrotiks dumped to regular files on Unix-server every 30 minutes, so we know when someone tunes something. For hotspot login-servlet pages we cant do the same. Do we have to make additional CVS (Subversion/etc) repository for this? :) it is a rhetorical question.
That said: http://gnuwin32.sourceforge.net/packages/wget.htm
If you need to download something and wget supports the platform and protocol it is probably going to be an extremely decent choice.
Yes, that's it. Thank you.
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: system backup function & hotspot login-servlet pages

Wed Oct 13, 2010 8:17 am

If I may ask: if you're using unix servers, why do you need a windows ftp client?
Doug
 
macosoft
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Tue Jul 20, 2010 1:42 am

Re: system backup function & hotspot login-servlet pages

Thu Oct 14, 2010 12:57 am

Try wincommander. Is working great on any type of windows and also have passive mode.

Who is online

Users browsing this forum: No registered users and 41 guests