Link to home
Start Free TrialLog in
Avatar of quippee
quippee

asked on

NT backup and mapped network drives

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?
Avatar of inbarasan
inbarasan
Flag of United States of America image

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!
Avatar of quippee
quippee

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(I mean NT backup shcedules just appear as a standard scheduled task in the control panel applet)
Avatar of quippee

ASKER

Nice I will do that
Avatar of quippee

ASKER

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
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
Avatar of quippee

ASKER

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"
Avatar of quippee

ASKER

I figured it out thanks for the help
No problem, glad it helped a bit
Steve