Re: Automated Backup Help
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Fri, 8 Feb 2008 18:49:34 +0100
As McKirahan suggested, I had three questions. Unless you take
the time to answer them in detail, I am unable to offer any further
assistance. Here they are again:
- What does the expanded command look like?
- Is the command what you would expect as a server administrator?
- Do the switches match up with the explanations you see when you
type the command "ntbackup /?"?
You need to put on your administrator's hat and carry out your
part of the trouble-shooting process, then present the results
here so that potential respondents can examine them.
"Brent Harrelson" <brent@xxxxxxxxx> wrote in message
news:3C36CCB7-936F-4AB7-9790-70AAB8AC9555@xxxxxxxxxxxxxxxx
OK...I placed that entry before the ntbackup command as instructed but got
exactly the same results I have previously described except for the
command being echoed to the command prompt. Again there was no error
message of any kind. It is very frustrating....obviously something is
wrong and causing the backup to fail or terminate early (before it even
starts) but there is no indication of an error message at all.
I do want to thank you for all the assistance you have given me, I really
do appreciate it.
--
________________________________________
Brent Harrelson
IT Director
Alpha & Omega Communications, Inc
(843) 249-7372 ext. 303
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:uMBA11daIHA.968@xxxxxxxxxxxxxxxxxxxxxxx
You need to make your backup command visible by inserting this line above
the ntbackup command:
echo Command=ntbackup backup %z_cur_drive%: /j "Drive-%z_cur_drive%" /f
"%z_bkf_spec%" /v:yes /l:s /m copy
What does it look like? Is it what you would expect as a server
administrator? Do the switches match up with the explanations
you see when you type the command "ntbackup /?"?
"Brent Harrelson" <brent@xxxxxxxxx> wrote in message
news:663DDEEE-BBEB-406A-9AAB-4ACC1A831857@xxxxxxxxxxxxxxxx
When I do that the same thing happens and I see no error messages. All
that happens is I run the batch file from the command prompt, I see the
normal "Looking for backup devices" box flash by for a split second then
I see the main backup program screen flash on for a split second then I
am dumped back to the command prompt with no errors.
--
________________________________________
Brent Harrelson
IT Director
Alpha & Omega Communications, Inc
(843) 249-7372 ext. 303
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:O8I%23gYaaIHA.3400@xxxxxxxxxxxxxxxxxxxxxxx
"Brent Harrelson" <brent@xxxxxxxxx> wrote in message
news:514591DC-D0C3-428D-B006-7A84855A183E@xxxxxxxxxxxxxxxx
I wrote here several months ago asking for a method on how to automate
the backup process in Windows Server 2003 so that I could make it
easier for my not so tech savvy co-workers to perform a backup incase I
was not in the office at the end of the week. We have a driver that is
nothing but important data and I wanted the entire drive backed up to a
file and named with the current date, in other words the backup for
February 7, 2008 would be named 02072008.bak or something similar.
I was provided with a wonderful batch file that did exactly that and
worked like a champ for a few months but now when I run it the Windows
backup program flashes on the screen for a split second before closing
to a command prompt asking me to press a key to continue. Now I have
not changed the file nor any settings on my server other than possibly
installing some critical updates so I am not sure why it stopped
working but if anyone can tell me what has happened and how to adjust
my batch file to function again or provide me with another batch file
or script I would be greatly appreciative. For reference I will
include the batch file I was given that worked so well for a while....
@echo off
REM *********************************************************
REM These are the "ntbackup" parameters and switches used ;
REM parameters ;
REM P1 backup Run a backup.
REM P2 %z_cur_drive% The path (in this case a drive) to backup.
REM switches ;
REM /j "Description" The backup job description/title, used by
ntbackup for the log file name.
REM /f "savefile" The full path to the save file, i.e. a ".bkf" file
that will contain the backup.
REM /v:yes Verify the backup.
REM /l:s Log file is "s" summary, "f" full, or "n" none.
REM /m copy Backup type, one of either copy, full, differential,
incremental or daily.
REM
REM The full log files can get pretty big, 2MB+ for a 2GB memory
stick, so we just stick with summary log files of about 2KB.
REM If the backup is aborted/cancelled then NTBackup does *not* set
ErrorLevel, it's always zero.
REM If the verify is aborted then nothing is written to the log file
to indicate this.
REM NTBackup appears to keep only ten rolling, looping, re-using log
file numbers.
REM NTBackup does not have a restore command line interface. The GUI
has to be used to restore files.
REM ********************************************************
REM get date (assumes no leading day name)...
set z_date=%date%
set z_mm=%z_date:~0,2%
set z_dd=%z_date:~3,2%
set z_yyyy=%z_date:~6,4%
set z_mmddyyyy=%z_mm%%z_dd%%z_yyyy%
REM this is the drive to backup...
set z_cur_drive=E
REM this is the target file that contain the backup...
set z_bkf_spec=f:\backups\%z_mmddyyyy%-E.bkf
ntbackup backup %z_cur_drive%: /j "Drive-%z_cur_drive%" /f
"%z_bkf_spec%" /v:yes /l:s /m copy
Thank you all in advance for any help you can give me on this.
--
________________________________________
Brent Harrelson
IT Director
Alpha & Omega Communications, Inc
(843) 249-7372 ext. 303
Run the batch file from a Command Prompt so that you can see
the error message(s).
.
- References:
- Automated Backup Help
- From: Brent Harrelson
- Re: Automated Backup Help
- From: Pegasus \(MVP\)
- Re: Automated Backup Help
- From: Brent Harrelson
- Re: Automated Backup Help
- From: Pegasus \(MVP\)
- Re: Automated Backup Help
- From: Brent Harrelson
- Automated Backup Help
- Prev by Date: change computer passwords in an OU
- Next by Date: Re: change computer passwords in an OU
- Previous by thread: Re: Automated Backup Help
- Next by thread: Re: Editing Personal Information
- Index(es):
Relevant Pages
|