Using Windows Backup To Backup 2K Server to Remote Location


G

Guest

Hi, I'm trying to use Windows Backup to backup a Windows 2000 Server to a
shared area on another server via a mapped drive. Each time I run the job it
fails because 'the specified media cannot be found', I can backup locally to
disk but not remotely - the backup script is as follows:

C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application Data\Microsoft\Windows
NT\NTBackup\data\rye.bks" /n "Media created 09/01/2007 at 13:25" /d "Set
created 09/01/2007 at 13:25" /v:yes /r:no /rs:no /hc:blush:ff /m normal /j "Full1"
/l:s /f "E:\Full.bkf"

The 'E' drive is mapped on the machine that is running the backup and the
correct permissions are set on the share where the 'E' drive is pointing at.
Any ideas why the backup is failing. I'm fairly sure its something to do
with the parameters in the backup job and the fact that I'm backing up to a
remote location rather than to a local disk or tape. Any advice appreciated,
thanks.
 
Ad

Advertisements

P

Pegasus \(MVP\)

rye-dale1 said:
Hi, I'm trying to use Windows Backup to backup a Windows 2000 Server to a
shared area on another server via a mapped drive. Each time I run the job it
fails because 'the specified media cannot be found', I can backup locally to
disk but not remotely - the backup script is as follows:

C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application Data\Microsoft\Windows
NT\NTBackup\data\rye.bks" /n "Media created 09/01/2007 at 13:25" /d "Set
created 09/01/2007 at 13:25" /v:yes /r:no /rs:no /hc:blush:ff /m normal /j "Full1"
/l:s /f "E:\Full.bkf"

The 'E' drive is mapped on the machine that is running the backup and the
correct permissions are set on the share where the 'E' drive is pointing at.
Any ideas why the backup is failing. I'm fairly sure its something to do
with the parameters in the backup job and the fact that I'm backing up to a
remote location rather than to a local disk or tape. Any advice appreciated,
thanks.

You need to state if you're running the job in your current foreground
session or if you run it as a scheduled task.
 
G

Guest

Hi Pegasus, thanks for the reply - I can backup to a remote location in a
current session but not from a scheduled task, when I run the job below as a
scheduled task I get the 'media cannot be found' error. Why does the job run
OK when run manually but fails when run as a scheduled task? Thanks
 
P

Pegasus \(MVP\)

Using a mapped drive in a scheduled task is not a good idea.
The drive letter might not be available or the account you use
for the scheduled task might have insufficient access rights to
this share. Use UNC coding insead.

If you place your backup command into the following
batch file then you will see things very clearly.

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
net use >> c:\test.log
dir E:\ >> c:\test.log
copy c:\test.log e:\test.log 1>>c:\test.log 2>>&1
C:\WINNT\system32\NTBACKUP.EXE backup "@C:\Documents and
Settings\Administrator\Local Settings\Application Data\Microsoft\Windows
NT\NTBackup\data\rye.bks" /n "Media created 09/01/2007 at 13:25" /d "Set
created 09/01/2007 at 13:25" /v:yes /r:no /rs:no /hc:blush:ff /m normal /j
"Full1"
/l:s /f "E:\Full.bkf"
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top