Solved

NT backup and mapped network drives

Posted on 2006-11-16
10
663 Views
Last Modified: 2008-03-17
Hi everyone,

I have a problem with NTbackup 2003 SBS. The server is one of many production VMware guest severs on a host machine. I need to backup the SBS server DATA files to another server’s hard drive that is not on the domain but connected via a router on a different subnet. I have created a user named backup with the same login and password credentials on both sides. I created folders for each day of the week. I can map a drive to the "target" machines folders (meaning where I want the backups to go). The problem is when I log out the network drive is no longer connected. Is there anyway I can maybe add to or write a script to have NT backup map a drive before the job starts to that the job will run successfully?
0
Comment
Question by:quippee
  • 5
  • 4
10 Comments
 
LVL 14

Expert Comment

by:inbarasan
ID: 17956337
Dear quippee,
You can write a scheduled task to execute the batch file which has "net use h: \\servername\share" before the backup starts as you know scheduled time of the backup.

Hope this helps

Cheers!
0
 

Author Comment

by:quippee
ID: 17956427
So I should create the bath file but how do I get NT backup to call on the batch file any help with this would be appreciated.
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 250 total points
ID: 17956935
To add to that slightly ... Easiest way is to schedule the backup using NT Backup. Then call up the scheduled task and you have all the command line you need for your ntbackup program.  Copy and paste that into notepad with a net use command before it complete with user and password, i.e.

net use x: \\server\share /user:username password /persistent:no
ntbackup.exe ......
Save it as mybackup.cmd say then change the path in the scheduled task to be the bacth file.

hth

Steve
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17956948
(I mean NT backup shcedules just appear as a standard scheduled task in the control panel applet)
0
 

Author Comment

by:quippee
ID: 17958401
Nice I will do that
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:quippee
ID: 17958512
I think I have the netuser command wrong can you take a look:

net use x: "\\10.2.1.39\DanDolan" BU\Mon /user:backup password:12323 /persistent:no
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17958561
net use x: \\10.2.1.39\DanDolan /user:backup 12323 /persistent:no

Don't know what bu/mon is but the above should do it.  net use /? gives the syntax too.

Steve
0
 

Author Comment

by:quippee
ID: 17958595
Here is my whole syntax when I run it in the command line windows NT backup opens up but then just closes.



net use x: "\\10.2.1.39\DanDolan BU\Mon" /user:backup password:12323 /persistent:no
C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\Full Data.bks" /n "Full Data" /d "Full Data" /n "Full Data" /v:no /r:no /rs:no /hc:off /m normal /j "Mon BU" /l:s /f "X:\Mon\FullBU.bkf"
0
 

Author Comment

by:quippee
ID: 17958739
I figured it out thanks for the help
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17961023
No problem, glad it helped a bit
Steve
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now