Here is my script for making dude backup's from PC's remotely. Probably, it will be useful for someone. It requires:
Bourne shell (sh)
To start using it just fill your admin login, password and server name and add to cron (or start by hand). Backup XML files and log by default will be placed in "dude-backup-files" subdirectory. You can change this option if you need this.
Tested on FreeBSD 6.2, RouterOS 3.28 (x86), Dude 3.4.
------------------------------------------------ * ver 1.0 - first public release * ver 1.1 - fixed work with cron
Joined: Fri Aug 17, 2007 7:42 am Posts: 729
I can't seem to get it working on 3.27 x86 dude 3.4. I don't think it's your script though because I can't download from the web interface either: Import/Export -> Dude configuration XML export. Attached is the log generated from your script.
Joined: Fri Jun 11, 2010 8:15 am Posts: 2
Hi guys, the theme and it was interesting to see if it worked? I want to attach an example which IP addresses where to and that you can make backup of the Windows OS. I would be grateful if you attach a picture of your patterns and where IP addresses are printed insert asterisks.
_________________ <<Chicken, fish and women consume them with his hands and then wash them!>> Cent-OS, RouterOS 3.30 (x86), Dude 3.6 ¿ʞO 'uǝ SOɹǝʇnoɹ ʞıʇoɹʞıW ɯ‚|
But i have a problem. Seriously problem. My network contents over 7k devices. I understand, that Dude don't keep their config anytime on harddrive, rewriting with certain interval. Dude generate their XML from RAM ? On my server, with 700 devices on monitoring with Dude(other devices planned after all troubles will defeat), when i start backup XML - for generating process Dude "eat" ~20 min. and after this time i have download dialog. In this view - we have a big trouble. WGET send request for autorization, after that download. De jure - download has start. De facto - start the process of generating XML-code and only then download will start. How result we have 0B downloaded *.xml file.
It's WGET output, when i run the script. Why Content-Lenght = 0? 0_o. May be because the dude 3.6 returns Content-Length=0 in their headers while generating, and sends the additional HTTP-request with correct headers when XML was generated? Then i have question. How make script is cath this request (if this reasons are true)
Gsandul, thanks for solution. Probably'll do. May be offtop, but did you know about upgrading dude 2.2 to 3.6 or 4(beta) and 3.6 to 4(beta)? May possible to data loss, misrepresentation,distortion of topology on maps, missing probes, etc.?
Our Company buying other ISP, and their using Dude 2.2 for monitoring services on devices, so i ask. In the near future, I plan to consolidate both servers as monitoring-agents. This requires reduction to a single version.
UP. Content-Lenght = 0 because harddrive is full. Not awailable space required for backup.
Rus: Постараюсь написать скрипт, который бы структуру дудового стораджа(то же что и бэкап) забирал по scp. Eng: I'll try to write a script that would pick up the structure Dude storage(the same as backup) via scp.
Users browsing this forum: No registered users and 3 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum