Re: [Veritas-bu] Script Restores?

2008-01-07 Thread Curtis Preston
Of course you can script them.  Just use the bprestore command in a
script.  Just make sure to use the -L option and log each restore to a
different file, so you can see how they worked.

---
W. Curtis Preston
Backup Blog @ www.backupcentral.com
VP Data Protection, GlassHouse Technologies 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bthessel
Sent: Thursday, January 03, 2008 11:36 AM
To: VERITAS-BU@mailman.eng.auburn.edu
Subject: [Veritas-bu] Script Restores?


Is it possible to script restore jobs? I have about 20 9840 tapes
containing about 100 jobs on a NB 5.1 system that I need to restore and
then copy the data over to a new location to be backed up in NB 6 to
LTO3. Doing it manually is taking forever since I have to do one job at
a time. Any help is appreciated, I don't want to be doing this for the
next month straight.

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Script Restores?

2008-01-07 Thread Ed Wilts
On 1/7/08, Paul Keating <[EMAIL PROTECTED]> wrote:
>
> Sure, look up bprestore.
>
> But, is there any reason you wouldn't just connect a 9840 to your new
> system, import the tapes and dupe the image to LTO3.
> I'd give it a try before going the restore -> backup route.


This is an excellent suggestion since the restore/backup route has many
issues.  First, all of your expiration dates will be recalculated doing
this.  Secondly, you're going to have fun duplicating your incremental
backup images...  Restoring a full, backing it up, and then restoring
separately an incremental and backing it up probably won't give you what you
started with.

Paul's approach is a good one - get NetBackup to duplicate the image to LTO3
then expire the images on the 9840s.  You can probably find a 3rd party that
can duplicate all those images to a new format too.

> -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of bthessel
> > Sent: January 3, 2008 2:36 PM
> > To: VERITAS-BU@mailman.eng.auburn.edu
> > Subject: [Veritas-bu] Script Restores?
> >
> >
> >
> > Is it possible to script restore jobs? I have about 20 9840
> > tapes containing about 100 jobs on a NB 5.1 system that I
> > need to restore and then copy the data over to a new location
> > to be backed up in NB 6 to LTO3. Doing it manually is taking
> > forever since I have to do one job at a time. Any help is
> > appreciated, I don't want to be doing this for the next month
> > straight.


-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Script Restores?

2008-01-07 Thread Paul Keating
Sure, look up bprestore.

But, is there any reason you wouldn't just connect a 9840 to your new
system, import the tapes and dupe the image to LTO3.
I'd give it a try before going the restore -> backup route.

Paul

-- 


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of bthessel
> Sent: January 3, 2008 2:36 PM
> To: VERITAS-BU@mailman.eng.auburn.edu
> Subject: [Veritas-bu] Script Restores?
> 
> 
> 
> Is it possible to script restore jobs? I have about 20 9840 
> tapes containing about 100 jobs on a NB 5.1 system that I 
> need to restore and then copy the data over to a new location 
> to be backed up in NB 6 to LTO3. Doing it manually is taking 
> forever since I have to do one job at a time. Any help is 
> appreciated, I don't want to be doing this for the next month 
> straight.


La version française suit le texte anglais.



This email may contain privileged and/or confidential information, and the Bank 
of
Canada does not waive any related rights. Any distribution, use, or copying of 
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately 
from
your system and notify the sender promptly by email that you have done so. 



Le présent courriel peut contenir de l'information privilégiée ou 
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous 
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
votre
ordinateur toute copie du courriel reçu.

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Script Restores?

2008-01-03 Thread Jeff Lightner
Sure - at least on UNIX/Linux.   Just do your script around the
bprestore command.

For example we use this for doing data refreshes from a backup run on
one server to a development database on another one:

/usr/openv/netbackup/bin/bprestore -R  -L restorelog -C
 -D  -S 
-s MM/DD/YY hh:mm -e MM/DD/YY hh:mm -f 

The -s specifies the date/time the backup was started and the -e
specifies the end of the range you want to search.

The -f specifies a separate file in which you specify which items you
wish to restore (e.g. we do a backup that includes data and binaries but
in this list we only put in the selections that would be for data as we
don't do binary refreshes with this process).   

The -R specifies a separate file that gives alternate paths for
selections.  e.g. original backup directories shown in the earlier list
might be /database/prod1 and /database/prod2.   We would equate
/database/prod1 with /database/dev1 then /database/prod2 with
/database/dev2 so it would use the dev paths as the alternate paths for
restore.

We also set the bp.conf to do FORCE_MEDIA_RESTORE from the -C client to
the -D client as both are media servers in our environment.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bthessel
Sent: Thursday, January 03, 2008 2:36 PM
To: VERITAS-BU@mailman.eng.auburn.edu
Subject: [Veritas-bu] Script Restores?


Is it possible to script restore jobs? I have about 20 9840 tapes
containing about 100 jobs on a NB 5.1 system that I need to restore and
then copy the data over to a new location to be backed up in NB 6 to
LTO3. Doing it manually is taking forever since I have to do one job at
a time. Any help is appreciated, I don't want to be doing this for the
next month straight.

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
--
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential 
information and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any disclosure, copying, distribution, or use of 
the contents of this information is prohibited and may be unlawful. If you have 
received this electronic transmission in error, please reply immediately to the 
sender that you have received the message in error, and delete it. Thank you.
--

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Script Restores?

2008-01-03 Thread Kristofer
You can restore from the command-line using "bprestore", and you can backup 
using "bpbackup". As far as choosing what you're going restore and from when, 
I'm not sure exactly how your backups are laid out or anything so you're going 
to have to look at the Command Reference or man pages for bprestore to see if 
you can find a relatively easy way to script it for your needs. But the tools 
are available from the command-line to make the restores happen from a script. 

- Original Message - 
From: "bthessel" <[EMAIL PROTECTED]> 
To: VERITAS-BU@mailman.eng.auburn.edu 
Sent: Thursday, January 3, 2008 1:35:51 PM (GMT-0600) America/Chicago 
Subject: [Veritas-bu] Script Restores? 


Is it possible to script restore jobs? I have about 20 9840 tapes containing 
about 100 jobs on a NB 5.1 system that I need to restore and then copy the data 
over to a new location to be backed up in NB 6 to LTO3. Doing it manually is 
taking forever since I have to do one job at a time. Any help is appreciated, I 
don't want to be doing this for the next month straight. 

+-- 
|This was sent by [EMAIL PROTECTED] via Backup Central. 
|Forward SPAM to [EMAIL PROTECTED] 
+-- 


___ 
Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu 
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


[Veritas-bu] Script Restores?

2008-01-03 Thread bthessel

Is it possible to script restore jobs? I have about 20 9840 tapes containing 
about 100 jobs on a NB 5.1 system that I need to restore and then copy the data 
over to a new location to be backed up in NB 6 to LTO3. Doing it manually is 
taking forever since I have to do one job at a time. Any help is appreciated, I 
don't want to be doing this for the next month straight.

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu