RE: NT Backup inconsistent medium



Hi

Through your own troubleshooting you have determined that the problem is
with your batch file.

I would configure the backup with NTBackup and set a schedule from there.

James


--------------------
| Thread-Topic: NT Backup inconsistent medium
| thread-index: AcZug0BJKoZrRXSgQLKDJzQK2KMw2Q==
| X-WBNR-Posting-Host: 213.84.251.101
| From: =?Utf-8?B?THVjIHZhbiBkZXIgTWFhcmVs?=
<LucvanderMaarel@xxxxxxxxxxxxxxxxxxxxxxxxx>
| References: <CA484EE9-E6B1-4310-AF09-5C4DAE5C05EE@xxxxxxxxxxxxx>
<J9#eZSjbGHA.3900@xxxxxxxxxxxxxxxxxxxxx>
| Subject: RE: NT Backup inconsistent medium
| Date: Wed, 3 May 2006 00:29:02 -0700
| Lines: 239
| Message-ID: <832A4316-4F6C-4529-8B21-927849AD94FD@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| Newsgroups: microsoft.public.windows.server.sbs
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windows.server.sbs:265236
| NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
| X-Tomcat-NG: microsoft.public.windows.server.sbs
|
| Sony AIT-1 IDE drive 20-52 GB
|
| The strange thing is when we perform a manual backup of some files or
| directory's to a tape with NT backup it works fine.
|
| We wrote our one batch file wich we use with about 10 customers with
several
| type's of drives and with them it works fine. Just this one customer
gives
| problems. The batch file is filled with some customer specific data and
looks
| like this:
|
| @ECHO Off
| @Cls
| REM Script gebaseerd op NT Backup
| REM Scripts en verslagen staan in D:\BACKUP
| REM De backupSET moet gemaakt worden via het interactieve programma
Back-up
| REM de gemaakte backupSET overbrengen naar afgesproken
"BACKSET"directorie
| (zie onder)
| rem let op! de backupset moet correct zijn, er wordt geen fout
geconstateerd
| en geen verslag gemaakt
| REM Backup opnemen in taakplanner
|
|
| REM ***************************
| REM * T A P E B A C K - U P *
| REM ***************************
|
|
| REM
| ********************************************************************
| REM * De parameters moeten van een waarde zijn voorzien in
| BACKSET.bat *
| REM
| ********************************************************************
|
| SET FUNCTIE=1
| CALL KLANT\BACKSET.bat
|
| REM
| *****************************************************
| REM * Onderstaand geen wijzigingen doorvoeren in
| script *
| REM * Alleen in overleg met Jan of Luc

| *
| REM
| *****************************************************
|
| REM SET standaard parameters
| REM Tape dient unieke naam te hebben, hiervoor timestamp meegeven zoals
ook
| in NT backup
| REM Zonder duidelijke herkenning wordt tape niet uitgeworpen
| REM SET Datum em Tijd
| for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do SET
DT=%%i-%%j-%%k-%%l
| for /f "Tokens=1" %%i in ('time /t') do SET TM=-%%i
| SET TM=%TM::=-%
| SET DTT=%DT%%TM%
| SET BUDATE=Gemaakt op %DATE% om %TIME%
| SET TAPENAAM=Backup %DTT%
| SET TAPESTS=
| SET BCKUPSTS=
|
| ECHO.
| ECHO Start backup procedure
| ECHO.
| ECHO Tapenaam : %TAPENAAM%
| ECHO Tapedrive : %tapedrive%
| ECHO BackupSET : %BACKSET%
| ECHO Bron NTdir : %BRONDIR%
|
| ECHO.
| ECHO De tapedrive-settings verversen om te de tape te vernieuwen
| ECHO en 60 seconden wachten
| ECHO.
| rsm.exe refresh /LF"%TAPEDRIVE%"
| sleep 60
|
|
| rem ***********************************************************
| rem inbouwen controle tape en na backup errorlevel controleren
| rem ***********************************************************
|
| FOR /F " usebackq delims==" %%i IN (`rsm view /Tphysical_media
/CG%TapeGUID%
| /B /GUIDDISPLAY`) DO SET TAPESTS=%%i
| FOR /F " usebackq delims==" %%i IN (`rsm view /Tphysical_media
/CG%TapeGUID%
| /B`) DO SET TAPESTS=%%i
|
| IF NOT "%TAPESTS%"=="" GOTO BCKSTART
| SET TAPESTS=Geen Tape
| SET BCKUPSTS=Fouten gevonden!
| GOTO FOUT
|
|
| :BCKSTART
| SET TAPESTS=
| ECHO.
| ECHO De backup daadwerkelijk starten
| ECHO.
|
| "%WINNTBU%" backup "@%BACKSET%" /n "%TAPENAAM%" /d "%TAPENAAM%" /v:no
/r:no
| /rs:no /hc:on /m normal /j "Backup" /l:s /p "%MEDIAGRP%" /UM
| if NOT ERRORLEVEL 1 GOTO FOUT
| SET BCKUPSTS=Fouten gevonden!- (%errorlevel%)
|
| :FOUT
| ECHO.
| ECHO Maken Backupverslag
| ECHO.
| CALL backlog.bat
|
| ECHO.
| ECHO Tape uitwerpen
| ECHO.
| rsm.exe eject /PF"%TAPENAAM% - 1" /astart
|
| ECHO.
| ECHO Einde backup
| ECHO.
|
|
| REM reset parameters
| SET FUNCTIE=2
| CALL KLANT\BACKSET.bat
| SET FUNCTIE=
|
| exit
|
|
|
| "James Frederickson - (MSFT)" wrote:
|
| > Hi
| >
| > You have to know I am going to say there is something wrong with the
tape
| > drive or tape drivers. It seems like an obvious statement especially
since
| > you can write the backup to the hard drive.
| >
| > But to help you get the issue resolved what I would like is the
| >
| > Brand
| > Make
| > Model
| >
| > of the tape device.
| >
| > James Frederickson - (MSFT)
| > jamesfre@xxxxxxxxxxxxxxxxxxxx
| > Microsoft Corporation
| >
| >
| > --------------------
| > | Thread-Topic: NT Backup inconsistent medium
| > | thread-index: AcZuMCEUuznwlK7JQDm33arbWvbyog==
| > | X-WBNR-Posting-Host: 213.84.251.101
| > | From: =?Utf-8?B?THVjIHZhbiBkZXIgTWFhcmVs?=
| > <LucvanderMaarel@xxxxxxxxxxxxxxxxxxxxxxxxx>
| > | Subject: NT Backup inconsistent medium
| > | Date: Tue, 2 May 2006 14:34:01 -0700
| > | Lines: 46
| > | Message-ID: <CA484EE9-E6B1-4310-AF09-5C4DAE5C05EE@xxxxxxxxxxxxx>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| > | Newsgroups: microsoft.public.windows.server.sbs
| > | Path: TK2MSFTNGXA01.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windows.server.sbs:265146
| > | NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
| > | X-Tomcat-NG: microsoft.public.windows.server.sbs
| > |
| > | Hi We use a Windows SBS 2003 server and the NTbackup utility. We usd
it
| > fine
| > | for several customers. However now for one customer NTbackup wont run
to
| > tape
| > | (sony ait) and gives the error :
| > |
| > | Backup verslag [Bouwsparen Woerden]
| > |
| > | Gemaakt op di 02-05-2006 om 23:00:00,14
| > | -----------------------------------------------------
| > | Backup wordt gemaakt van onderstaande files en directories:
| > | D:\AllVision\
| > | D:\Bedrijfs gegevens\
| > | D:\User Shared Folders\
| > | D:\Backup\
| > | D:\Backup\Doc Intern\ /Exclude
| > | D:\Backup\Historie\ /Exclude
| > | D:\Backup\Log\ /Exclude
| > |
| > | -----------------------------------------------------
| > | Backup op Tapedrive: Sony AIT 20 GB IDE Drive
| > | Tapenaam : Backup di-02-05-2006---23-00
| > | -----------------------------------------------------
| > | Fouten gevonden tijdens maken backup
| > | *****************************************************
| > |
| > | Status van back-up
| > | Bewerking: back-up maken
| > | Actief back-updoel: 8mm AIT
| > | Naam van medium: Backup di-02-05-2006---23-00
| > |
| > |
| > | Fout: Inconsistentie op het aangevraagde medium.
| > |
| > | Fout: D: is geen geldig station of u hebt geen toegang.
| > |
| > | I'll try to translate the last two lines:
| > |
| > | Inconsistency on the medium
| > |
| > | D: is not a valid drive or user has no rights
| > |
| > | We cannot follow this, tapes and drive are brandnew and even we
swapped
| > the
| > | hardware. The d-drive is just a harddrive.
| > |
| > | The weird things is that if we do exact the same backup prodedure to
a
| > | folder on the c - drive (a file backup) everything works fine.
However we
| > | want to backup to tape.
| > |
| >
| > <EMAILSUBJECT>Newsgroup Message Response to IssueID:
| > <ISSUEID></EMAILSUBJECT>
| > Hi <NAME>,
| >
| > I wanted to inform you that I have replied to your thread in
<NEWSGROUP>
| > titled: <NEWSGROUPSUBJECT> with IssueID: <ISSUEID>.
| > <a href="http://wwww.microsoft.com>
| > Please reply directly to the thread with any updates. You may receive
this
| > email notification before you are able to view my reply in the
newsgroup.
| > If you are unable to view the reply to your thread, please send me an
email
| > with a description of the problem and what newsreader you are using.
| > Regards,
| >
| >
| >
|

<EMAILSUBJECT>Newsgroup Message Response to IssueID:
<ISSUEID></EMAILSUBJECT>
Hi <NAME>,

I wanted to inform you that I have replied to your thread in <NEWSGROUP>
titled: <NEWSGROUPSUBJECT> with IssueID: <ISSUEID>.
<a href="http://wwww.microsoft.com>
Please reply directly to the thread with any updates. You may receive this
email notification before you are able to view my reply in the newsgroup.
If you are unable to view the reply to your thread, please send me an email
with a description of the problem and what newsreader you are using.
Regards,


.



Relevant Pages

  • Re: Backup bat file
    ... > trying to use a bat file to make the backup run and backup directly ... tape library, media type, etc.... ... rem you'll need sleep.exe from the resource kit. ... echo You may check the attached log to verify that it was successful. ...
    (microsoft.public.win2000.general)
  • Re: Batch ntbackup to external hard drives (new version - Sept 2006)
    ... Below is a new version of the backup script that I posted to USENET ... external hard drives, such as those available from AcomData and others). ... echo Runs a backup to two external hard drives and logs progress and errors ... rem 1) Edit the Script Customizations ...
    (microsoft.public.windows.server.general)
  • RE: NT Backup inconsistent medium
    ... directory's to a tape with NT backup it works fine. ... REM Script gebaseerd op NT Backup ... REM Tape dient unieke naam te hebben, ... ECHO Start backup procedure ...
    (microsoft.public.windows.server.sbs)
  • Re: dos batch programmer help!!
    ... echo Please install the backup tape ... if exist testtape.ok goto goodtape ... echo ERROR ERROR ERROR ...
    (comp.os.msdos.programmer)
  • Simple way to email nightly backup log?
    ... On my non-SBS servers I run a script that will run backup to tape and ... rem This batch file is scheduled with the AT command to run at 1am each ... rem new media that is inserted so the next backup command does not ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windows.server.sbs)