Welcome to ISAserver.org
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
RE: Automate Backup to XML??
|
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
RE: Automate Backup to XML?? - 31.May2006 7:15:44 PM
|
|
|
ClintD
Posts: 1833
Joined: 26.Jan.2001
From: Keller, TX
Status: offline
|
c:\cscript ImportExport.vbs e ISAConfig_05312006_DailyBackup.xml
|
|
|
|
RE: Automate Backup to XML?? - 31.May2006 7:30:26 PM
|
|
|
bhavin78
Posts: 428
Joined: 18.Jul.2005
From: USA
Status: offline
|
I tried all this but not working for me. why do I need to put file name it's already in the script , I am following the script with email notification. C:\Documents and Settings\Administrator.360INCLIV>C:\ISA Server data\ImportExport_Email.vbs e backup.xml 'C:\ISA' is not recognized as an internal or external command,operable program or batch file. C:\Documents and Settings\Administrator.360INCLIV>C:\WINDOWS\system32\wscript.ex e "C:\ISA Server data\ImportExport_Email.vbs e backup.xml" C:\Documents and Settings\Administrator.360INCLIV>C:\WINDOWS\system32\wscript.ex e C:\ISA Server data\ImportExport_Email.vbs e C:\Documents and Settings\Administrator.360INCLIV>C:\WINDOWS\system32\wscript.ex e "C:\ISA Server data\ImportExport_Email.vbs e"
|
|
|
|
RE: Automate Backup to XML?? - 1.Jun.2006 10:03:52 AM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
Hi, in the version of the script I posted, you actually set the folder and filename you want to save the file to (it automatically adds the date so you can keep historical copies) Once you have set these, if you have the vbs, called importexport_email.vbs in a folder C:\ISA Server data, all you have to run from the command prompt is: cd \isa server data importexport_email.vbs e you do not need to add the filename on the end of it. Hope this helps Andy
|
|
|
|
RE: Automate Backup to XML?? - 1.Jun.2006 3:00:45 PM
|
|
|
bhavin78
Posts: 428
Joined: 18.Jul.2005
From: USA
Status: offline
|
That worked. What does you script back up, all the settings including rules, vpn configuration, URL blocking etc?
|
|
|
|
RE: Automate Backup to XML?? - 1.Jun.2006 3:04:42 PM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
Hi, To be honest I have only just implemented ISA, I know that the script restores firewall rules, certain settings in system policies, VPN configuration (excluding RADIUS shared secret) If you look in the ISA help for export, it will give you a run down on what it does not back up. The way I have been testing is to do an export, delete a few things, import and see if they come back! We do no use ISA for URL blocking, so your best bet may be best to try that and see. Post back anything you find it doesn't do, it is unlikely that the vbs can be change to include these things, but it will be useful info for people. Thanks Andy
|
|
|
|
RE: Automate Backup to XML?? - 1.Jun.2006 3:40:17 PM
|
|
|
Ashokk001
Posts: 232
Joined: 6.Oct.2005
Status: offline
|
Hi Andy, Sorry for the late reply but it seems that others have replied with the difference with Backup and export. It would have been good if the backup option was incorporated into the script but i suspect MS doesn't offer this in the API. I suppose the main thing is the exported config and do a backup manually every week or month to be sure. Thanks! for the script, its working very well. Ashok.
|
|
|
|
RE: Automate Backup to XML?? - 14.Jun.2006 3:50:00 PM
|
|
|
tonygauderman
Posts: 107
Joined: 6.Feb.2006
Status: offline
|
This script works great in our environment. The only thing I changed was to attach the xml file to email and send it to an email account on a server behind the ISA firewall I was backing up... objMessage.AddAttachment "c:\SETTHISVALUE\" & replace(Date,"/","_")+_ISA_CONFIG.XML" To ease my paranoia, I am more than likely going to encrypt the file before emailing, though if anyone besides a network admin can sniff the traffic between the ISA Server and the mail server, that would be a security issue beyond just being able to capture the ISA config in clear text.
|
|
|
|
RE: Automate Backup to XML?? - 29.Aug.2006 5:47:39 PM
|
|
|
Bane
Posts: 5
Joined: 26.May2006
Status: offline
|
I am trying to use the script on one of my ISA 2004 servers, and the script runs but does not write an xml file. Any ideas what would cause this? Thanks
|
|
|
|
RE: Automate Backup to XML?? - 30.Aug.2006 9:58:51 AM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
Hi Bane, Have you modified the line beginning firewall.ExportToFile you will need to change this to a valid location for your network. Thanks Andy
|
|
|
|
RE: Automate Backup to XML?? - 30.Aug.2006 4:06:31 PM
|
|
|
Bane
Posts: 5
Joined: 26.May2006
Status: offline
|
I have two ISA 2004 servers, and both have the same script. It successfully writes the xml file on the first but not the second. The second behaves as I listed above. So, what would cause the xml file to not be written?
|
|
|
|
RE: Automate Backup to XML?? - 30.Aug.2006 4:19:04 PM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
I am not sure what would cause it, I would suggest you change the target folder to something else to make sure it is nothing to do with that. Apart from that I don't know what would cause it. I take it the the target folders of the 2 servers and target file names are not the same (ie one server's xml overwriting the other)?
|
|
|
|
RE: Automate Backup to XML?? - 30.Aug.2006 4:45:25 PM
|
|
|
Bane
Posts: 5
Joined: 26.May2006
Status: offline
|
I have both servers writing to a local directory on each server. So, there is no chance that one is overwriting the other.
|
|
|
|
RE: Automate Backup to XML?? - 30.Aug.2006 4:54:09 PM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
Does the folder you are trying to write to exist, I think the script may fall over if the folder is not there. Are both the servers the same Operating System etc? if the server is older then perhaps you need to update the version of wscript on it. Does it work if you change the target folder? When using other VB Scripts, I have had it where there is a hung instance of the task in the background in Task Manager, it will be called something obvious, have a look and see if that it what is causing the problem. Providing the scripts are the same there should be no reason for it not to work on one of the servers, have you tried restarting the one that it does not work on?? Andy
|
|
|
|
RE: Automate Backup to XML?? - 7.Sep.2006 8:48:59 PM
|
|
|
bhavin78
Posts: 428
Joined: 18.Jul.2005
From: USA
Status: offline
|
Script is just working fine, but not able to send email. It errors out. Here's the error The message could not be send to the smpt server,The transport error code was 0x800ccc15. The server response was not available. Code :40082011 Source: Null Note: My exchange server is configured to relay messages from ISA server but, default gateway of Exchange is not ISA. Is this the reason for the error.
< Message edited by bhavin78 -- 7.Sep.2006 9:01:47 PM >
|
|
|
|
RE: Automate Backup to XML?? - 8.Sep.2006 10:19:10 AM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
Hi, The gateway will not be the problem. My exchange server does not have the ISA as it's default gateway. First thing I would suggest is that perhaps ISA is blocking port 25 to the exchange server. You can test this by trying to telnet to port 25 of you exchange server from your ISA. Thanks Andy
|
|
|
|
RE: Automate Backup to XML?? - 8.Sep.2006 3:20:28 PM
|
|
|
bhavin78
Posts: 428
Joined: 18.Jul.2005
From: USA
Status: offline
|
I tried to telnet to port 25 and telnet to host (exchange) both failed, what I need to do to open port 25 on ISA server? My exchange server which is smpt server is not a secure client, for right now I cannot do that as I am not ready for that.
|
|
|
|
RE: Automate Backup to XML?? - 8.Sep.2006 3:22:37 PM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
As far as I know you will just need to open port 25 to your exchange server, you may only need to open this one way. You will have to experiment with the rule.
|
|
|
|
RE: Automate Backup to XML?? - 8.Sep.2006 3:45:46 PM
|
|
|
bhavin78
Posts: 428
Joined: 18.Jul.2005
From: USA
Status: offline
|
I created access rule to allow smpt protocol from LocalHost to Exchange server and still not working. How you made your's work?
|
|
|
|
RE: Automate Backup to XML?? - 8.Sep.2006 3:51:37 PM
|
|
|
Andy_UK
Posts: 80
Joined: 12.May2006
From: Suffolk, UK
Status: offline
|
I do not need a rule on mine for some reason. My Exchange server is a Domain Controller, whether this somehow eases the security and help with this I do not know. On your ISA have you set a static route to pass all the traffic to your LAN using the route add function? I had to do this before I could communicate much with the rest of the servers on my LAN.
|
|
|
|
RE: Automate Backup to XML?? - 14.Feb.2007 3:22:04 PM
|
|
|
satya_yvv
Posts: 5
Joined: 3.Jan.2007
Status: offline
|
Hi Andy, Thanks for your script.I am using this script for taking backup of my ISA enterprise server running on single NIC and configured as web proxy.Same server has CSS. I hope this backup is enough to restore entire ISA Enterprise server when disaster happen. Thanks, Satya.
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|