Guest eazy.e Posted July 9, 2007 Posted July 9, 2007 Where was the UNC added??? Eric Pegasus \(MVP\) Wrote: > Thanks for the feedback. > > > "bobneedshelp" > <bobneedshelp@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-newsgroups.nospam> > wrote in message > news:F059384D-A744-4D77-89F9-E1EE1DA0BF4E@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-microsoft.com... > > I tested with UNC and it works! > > > > Problem resolved. > > > > Thanks for the help. > > -- > > Bob > > > > > > "Pegasus (MVP)" wrote: > > > > > Mapped drives exist only within the context where > > > they were created. You use drive Z: - yet you never > > > map a share to drive Z:! > > > > > > Two additional points: > > > - When accessing networked resources under a scheduled > > > task, you must be ***very*** careful and ensure that the > > > account used for the scheduled task has sufficient access > > > rights to the shared resource. > > > - While it is possible to map drive letters agains shares in > > > scheduled task, this is not a good idea. The drive letter > > > might be in use by some other task. Use UNC coding > > > if at all possible. > > > > > > > > > "bobneedshelp" > <bobneedshelp@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-newsgroups.nospam> > wrote in message > > > > news:509DCB6E-A990-400A-8839-7FD339C8E31D@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-microsoft.com... > > > > I scheduled and ran the following batch file when I was logged > out. > > > > > > > > @-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-echo off > > > > echo %date% %time% Start of task > c:\test.log > > > > dir Z:\MonBackUps 1>>c:\test.log 2>>c:\test.err > > > > echo %date% %time% 1>Z:\MonBackUps 2>>c:\test.err > > > > echo User=%UserName%, Path=%path% >> c:\test.log > > > > %systemroot%\system32\ntbackup.exe /.. /.. 1>>c:\test.log > 2>>c:\test.err > > > > echo %date% %time% End of task >> c:\test.log > > > > > > > > In the test.err file I had: > > > > The system cannot find the path specified. > > > > > > > > In the test.log file I had: > > > > Wed 01/25/2006 19:08:00.29 Start of task > > > > User=Bob, > > > > > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;"C:\Program > > > > Files\Symantec\Norton Ghost 2003\";C:\Program > Files\QuickTime\QTSystem\ > > > > Wed 01/25/2006 19:08:11.42 End of task > > > > > > > > I ran the same batch file when I was logged in. > > > > > > > > In the cmd window I get a message that says: "Access is denied". > > > > > > > > In the test.err file I had nothing (no errors). > > > > > > > > In the test.log file I had: > > > > Wed 01/25/2006 19:15:29.54 Start of task > > > > Volume in drive Z is backup > > > > Volume Serial Number is XXXX-YYYY > > > > > > > > Directory of Z:\MonBackUps > > > > > > > > 01/18/2006 07:54 AM <DIR> . > > > > 01/19/2006 04:50 AM <DIR> .. > > > > 01/12/2006 03:26 AM 123,477,113,856 MonBackup.bkf > > > > 01/14/2006 03:00 PM 50,861,056 y Backup.bkf > > > > 01/18/2006 08:09 AM 1,841,537,024 MonBackupInc.bkf > > > > 3 File(s) 125,369,511,936 bytes > > > > 2 Dir(s) 623,347,318,784 bytes free > > > > User=Bob, > > > > > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;"C:\Program > > > > Files\Symantec\Norton Ghost 2003\";C:\Program > Files\QuickTime\QTSystem\ > > > > Wed 01/25/2006 19:15:34.26 End of task > > > > > > > > I guess this is telling me: > > > > I don't have access to the mapped drive Z: > > > > Any idea how I get access to this when logged out? It is a > mapped > drive > > > > (Z:) to a NAS device on the network. I scheduled the backup as > an > > > > administrative user that should have access to this drive. > Should I > try > > > to > > > > access it by name (like \\NAS\backup)? > > > > > > > > > > > > -- > > > > Bob > > > > > > > > > > > > "Pegasus (MVP)" wrote: > > > > > > > > > The .bks file can reside anywhere. In your case it seems > > > > > that it resides in a location that is inaccessible to the > account > > > > > you use to run the backup job. There are two obvious ways > > > > > to fix this: > > > > > a) Move the file to a location that is accessible to the > account > > > > > used for the backup job, or > > > > > b) Use an account for the backup job that has appropriate > > > > > access rights to the .bks file. > > > > > > > > > > > > > > > "bobneedshelp" > <bobneedshelp@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-newsgroups.nospam> > wrote in message > > > > > > news:42FDE1D2-9514-4F32-982F-E6E80D956CC7@-BLCKSPM--BLCKSPM--BLCKSPM--BLCKSPM-microsoft.com... > > > > > > Originally, I did get this batch file from somewhere on the > Internet. > > > If > > > > > it > > > > > > was from you, thanks for providing it. I can change it as > you > suggest > > > and > > > > > > try the test again. > > > > > > > > > > > > I know that the error comes from: > > > > > > %systemroot%\system32\ntbackup.exe > > > > > > because I commented out the other lines in the batch file and > just > ran > > > > > this > > > > > > line to find out which line caused issues. > > > > > > > > > > > > If I just run this line in the batch file, I get the error > "Access > is > > > > > denied." > > > > > > > > > > > > I have a nightly job scheduled (using the backup wizard and > scheduler) > > > > > that > > > > > > puts the following event information into the application > event > log. > > > > > > > > > > > > Event ID: 8017 > > > > > > Source: Ntbackup > > > > > > Ntbackup error: The saved selection file > "(path\FileName.bks)" > cannot > > > be > > > > > > found. > > > > > > > > > > > > I found the information about this Event ID on Microsoft's > support > web > > > > > site. > > > > > > The .bks file is in a user's Application Data directory I > believe > by > > > > > > default. The file is there. I also believe all directories > selected > > > by > > > > > the > > > > > > wizard is there as well. > > > > > > > > > > > > -- > > > > > > Bob > > > > > > > > > > > > Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.