Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Computing Support Forums > Networking
Home Forums Register Search Today's Posts Mark Forums Read

Backup domain 2 domain problem...

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 09-Apr-2008, 03:10 PM
garyb's Avatar
garyb garyb is offline
Valued Member
Posts: 153
Points: 24 garyb has between 1 & 100 points
Power: 4
None
Join Date: 27 Feb 2007
Location: Peterborough UK
Age: 40
WIP: MCSA 2003
Backup domain 2 domain problem...

Hi,
At our DataCentre I have SQL server on the LAN side of the firewall and IIS server on the DMZ side. I have setup the rules to allow traffic from LAN 2 DMZ and 1433 from DMZ to LAN therein safeguarding the data should the IIS box get breached.

I decided to backup the SQL files to the IIS box using NTBACKUP, didnt work so tried normal xcopy batch files again didnt work. However they do work when I run them manually, ie run the batch file from a command prompt or NTBACKUP direct from its console, its only when they are scheduled via task scheduler or NTBACKUPs own scheduler that problems occur with no real indictaion why.

For example if I run "xcopy D:\mydb.bak \\remoteserver\bakupfolder\" it works great. If I schedule this using task scheduler it fails to run. I have tried running using system account on SQL & IIS, creasting an identical account on each box and running that way, still no joy!

SQL box is Server 2000 SP4 & IIS box is Server 2003 SP2..

ANy ideas appreciated..

 
Reply With Quote
  #2  
Old 09-Apr-2008, 05:26 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Lifetime Member
Posts: 1,035
Points: 1088 NightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 points
Power: 27
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Do your service accounts have the right to 'logon as a batch job'. It’s in group policy, you need to check it’s enabled for the account running the scheduled task on the server the task is set on.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW


 
Reply With Quote
  #3  
Old 09-Apr-2008, 09:57 PM
garyb's Avatar
garyb garyb is offline
Valued Member
Posts: 153
Points: 24 garyb has between 1 & 100 points
Power: 4
None
Join Date: 27 Feb 2007
Location: Peterborough UK
Age: 40
WIP: MCSA 2003
Thanx NightWalker,
Yeh that is already set in local group policy for the required user, still no success. The Task Sceduler returns a status of 4 in the log but not very helpful to diagnose!

When this machine was in the domain it worked fine, not its in its own workgroup it simply wont work, even though it has access to the other servers in other workgroups? Its doing my head in as I keep have to get up in the early hours to run this bloody backup manually!

G

 
Reply With Quote
  #4  
Old 09-Apr-2008, 10:05 PM
Sparky's Avatar
Sparky Sparky is offline
Premium Member
Posts: 5,524
Points: 2905 Sparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 points
Power: 90
None
Join Date: 15 Dec 2005
Location: Scotland
Age: 29
Certifications: MSc MCSE MCSA:M MCTS:Vista N+ A+
WIP: Server 2008 upgrade
If you run the backup as a scheduled task but put the backup on the same server does it work ok?


 
Reply With Quote
  #5  
Old 09-Apr-2008, 10:18 PM
ThomasMc's Avatar
ThomasMc ThomasMc is offline
Longterm Member
Posts: 522
Points: 597 ThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 points
Power: 14
None
Join Date: 04 Dec 2006
Location: Glasgow
Certifications: MCDST
WIP: MCSA (70-270), CCNA, CCNP
permissions?





Last edited by ThomasMc : 09-Apr-2008 at 10:38 PM.
 
Reply With Quote
  #6  
Old 10-Apr-2008, 08:30 AM
garyb's Avatar
garyb garyb is offline
Valued Member
Posts: 153
Points: 24 garyb has between 1 & 100 points
Power: 4
None
Join Date: 27 Feb 2007
Location: Peterborough UK
Age: 40
WIP: MCSA 2003
Hi,
The batch files run perfectly locally, its only cross domain/workgroup from this server that I have the issues, it worked fine when it was in our office domain..Ob both NTBACKUP & the batch files I am using the SQL servers admin account which has all admoin account rights set correctly but obviously doesnt have NTFS righst on the destination server as no account exists for this server. When I double click the batch file to run successfully what account would it be running under?

Thanx again..

OK, a quick update. On the remote SQL server I have scheduled a XXCOPY to copy only the days SQL backups to a temp directory at 02:00 each day. Then on my workstation on the LAN here I have scheduled an xcopy batch file to copy that remote temp directory to the remote IIS server which works fine.

I know its really messy & I would like to find a simpler method but short term it works & I get some sleep! Must be something to do with the account SQL admi runs under?


Last edited by garyb : 10-Apr-2008 at 09:30 AM. Reason: Workaround!
 
Reply With Quote
  #7  
Old 10-Apr-2008, 02:06 PM
r.h.lee r.h.lee is offline
Longterm Member
Posts: 902
Points: 1009 r.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 points
Power: 24
None
Join Date: 18 Mar 2006
Certifications: MCSE, MCP+I, MCP, CCNA, A+
WIP: CCDA
Quote:
Originally Posted by garyb View Post
Hi,
At our DataCentre I have SQL server on the LAN side of the firewall and IIS server on the DMZ side. I have setup the rules to allow traffic from LAN 2 DMZ and 1433 from DMZ to LAN therein safeguarding the data should the IIS box get breached.

I decided to backup the SQL files to the IIS box using NTBACKUP, didnt work so tried normal xcopy batch files again didnt work. However they do work when I run them manually, ie run the batch file from a command prompt or NTBACKUP direct from its console, its only when they are scheduled via task scheduler or NTBACKUPs own scheduler that problems occur with no real indictaion why.

For example if I run "xcopy D:\mydb.bak \\remoteserver\bakupfolder\" it works great. If I schedule this using task scheduler it fails to run. I have tried running using system account on SQL & IIS, creasting an identical account on each box and running that way, still no joy!

SQL box is Server 2000 SP4 & IIS box is Server 2003 SP2..

ANy ideas appreciated..
garyb,

First question off the top of my head is why the heck are you doing a backup of the SQL files, which is on the securest side of the firewall, to the IIS server which is in the LESS secure DMZ?


MCSE, MCP+I, MCP, A+, CCNA certified

Last edited by r.h.lee : 10-Apr-2008 at 02:07 PM.
 
Reply With Quote
  #8  
Old 10-Apr-2008, 07:55 PM
garyb's Avatar
garyb garyb is offline
Valued Member
Posts: 153
Points: 24 garyb has between 1 & 100 points
Power: 4
None
Join Date: 27 Feb 2007
Location: Peterborough UK
Age: 40
WIP: MCSA 2003
r.h.lee
Valid point and one I've mulled over for a while now but it came down to 3 options. Either I dont backup at all and hope me RAID5 servers me well, drag 6GB of databases over the WAN back to my office each night or keep on top of the IIS box and simply copy the backup files onto this. I realise its not the best option but I have trust in the Gateway firewall and have disabled all services not required.

In the event of losing SQL data its simply a case of restoring from a local source rather than 6GB over a 2mb pipe!!!

Cheers

G

 
Reply With Quote
  #9  
Old 10-Apr-2008, 09:21 PM
Sparky's Avatar
Sparky Sparky is offline
Premium Member
Posts: 5,524
Points: 2905 Sparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 points
Power: 90
None
Join Date: 15 Dec 2005
Location: Scotland
Age: 29
Certifications: MSc MCSE MCSA:M MCTS:Vista N+ A+
WIP: Server 2008 upgrade
Have you tried mapping a drive and connecting with different credentials? Perhaps try that and lock the server (don’t log off) and see if the backup runs ok.


 
Reply With Quote
  #10  
Old 11-Apr-2008, 12:54 AM
r.h.lee r.h.lee is offline
Longterm Member
Posts: 902
Points: 1009 r.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 points
Power: 24
None
Join Date: 18 Mar 2006
Certifications: MCSE, MCP+I, MCP, CCNA, A+
WIP: CCDA
Quote:
Originally Posted by garyb View Post
r.h.lee
Valid point and one I've mulled over for a while now but it came down to 3 options. Either I dont backup at all and hope me RAID5 servers me well, drag 6GB of databases over the WAN back to my office each night or keep on top of the IIS box and simply copy the backup files onto this. I realise its not the best option but I have trust in the Gateway firewall and have disabled all services not required.

In the event of losing SQL data its simply a case of restoring from a local source rather than 6GB over a 2mb pipe!!!

Cheers

G
garyb,


Did you know that some security attacks come from known ENABLED services? Case in point, using web traffic, which by definition MUST be enabled for the outside world to reach the IIS server, is the method of attack. The "gateway firewall" is NOT going to help defend your network from a web attack that's designed to look like routine web traffic. Once your IIS server is compromised, and the attacker finds the SQL backup on the computer, why even bother trying to crack from the DMZ to the inner network? The more frequently dilligent you are on the backups, is how frequently the attacker may obtain updates to your SQL server's data. If the IIS server is compromised, then your "routine backups" is basically like giving the attacker the data that you're trying to protect by placing the server in the inner network to the attacker on a silver platter.

I have to ask but do you have any disaster recovery procedures in place for fixing the SQL server, restoring data from backup to the SQL server, verify if things are back to normal, and the estimated timeline for the entire process? Compare that overall down time (which translates into money) with the cost in lost revenues from the "system unable to process any transactions due to SQL server failure" then you have to consider a more available option such as either a second SQL server for load balancing and real time fault tolerance. If that solution would outweigh the costs of fixing the SQL server, restoring data from backup to the SQL server, verify if things are back to normal, then maybe have a dedicated backup server in the same network as the SQL server with a RAID 5 array. Budget permitting, maybe have a hot swappable hardware RAID 5 array.

So in other words, I believe that your relative band-aid solution is itself creating another problem that may be worse than the perceived problem of the problem associated with no backup.


MCSE, MCP+I, MCP, A+, CCNA certified
 
Reply With Quote
  #11  
Old 14-Apr-2008, 01:26 PM
Stoney's Avatar
Stoney Stoney is offline
Longterm Member
Posts: 712
Points: 784 Stoney has over 500 pointsStoney has over 500 pointsStoney has over 500 pointsStoney has over 500 pointsStoney has over 500 pointsStoney has over 500 pointsStoney has over 500 points
Power: 19
None
Join Date: 13 Jun 2006
Location: Nottingham
Age: 28
Certifications: 25 + 50 metre front crawl
WIP: MCSA - Exam 70-270
R.H.Lee: Is there a name for this attack that exploits IIS or is it just a generic vulnerability?


Printed on 100% recycled forum posts.
 
Reply With Quote
  #12  
Old 14-Apr-2008, 05:08 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Lifetime Member
Posts: 1,035
Points: 1088 NightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 pointsNightWalker has over 1000 points
Power: 27
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Quote:
Originally Posted by r.h.lee View Post
garyb,


Did you know that some security attacks come from known ENABLED services? Case in point, using web traffic, which by definition MUST be enabled for the outside world to reach the IIS server, is the method of attack. The "gateway firewall" is NOT going to help defend your network from a web attack that's designed to look like routine web traffic. Once your IIS server is compromised, and the attacker finds the SQL backup on the computer, why even bother trying to crack from the DMZ to the inner network? The more frequently dilligent you are on the backups, is how frequently the attacker may obtain updates to your SQL server's data. If the IIS server is compromised, then your "routine backups" is basically like giving the attacker the data that you're trying to protect by placing the server in the inner network to the attacker on a silver platter.

I have to ask but do you have any disaster recovery procedures in place for fixing the SQL server, restoring data from backup to the SQL server, verify if things are back to normal, and the estimated timeline for the entire process? Compare that overall down time (which translates into money) with the cost in lost revenues from the "system unable to process any transactions due to SQL server failure" then you have to consider a more available option such as either a second SQL server for load balancing and real time fault tolerance. If that solution would outweigh the costs of fixing the SQL server, restoring data from backup to the SQL server, verify if things are back to normal, then maybe have a dedicated backup server in the same network as the SQL server with a RAID 5 array. Budget permitting, maybe have a hot swappable hardware RAID 5 array.

So in other words, I believe that your relative band-aid solution is itself creating another problem that may be worse than the perceived problem of the problem associated with no backup.
Good post, some good points to consider.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW


 
Reply With Quote
  #13  
Old 15-Apr-2008, 09:48 AM
garyb's Avatar
garyb garyb is offline
Valued Member
Posts: 153
Points: 24 garyb has between 1 & 100 points
Power: 4
None
Join Date: 27 Feb 2007
Location: Peterborough UK
Age: 40
WIP: MCSA 2003
All valid points and much appreciated, budget is a big issue for us as our industry is in turmoil at the moment and although this is important to me it seems the powers above do noty deem it importamnt enough to stretch that but further for "local LAN server" to store backups which is my preferred option. Taken your points onboard though & I have cancelled the plan to backup to DMZ, instead I am using replication software to mirror SQL back to base.

On the hacking point though, even if someone did breeze in on on port 80 what could they do as SQL isnt installed on the DMZ server, obtaining the actual data from the backup files would be difficult wouldnt it?

Cheers

G

 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Computing Support Forums > Networking


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems backing up to TeraStation moviemaker Networking 11 08-Feb-2008 08:21 PM
Exchange 2007 and Backup Exec nugget Software 13 14-Dec-2007 11:24 PM
Problem with Windows backup Sparky Software 2 29-Aug-2007 09:05 PM
Upgrading a domain to W2008 Phoenix Active Directory Exams 3 14-Jun-2007 12:29 PM
Backup Problem Raffaz Linux / Unix Discussion 3 13-Sep-2006 06:04 PM


All times are GMT. The time now is 01:49 AM.

Powered by vBulletin® Version 3.6.11
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages