Veritas-bu

[Veritas-bu] Image Restore

2003-08-12 16:34:46
Subject: [Veritas-bu] Image Restore
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Tue, 12 Aug 2003 14:34:46 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C36111.2B8B17A0
Content-Type: text/plain

I thinkyou only have one choice,
 
Delete all the bad code (or move to another location - much safer), and
restore the entire directory tree from the old backup.  The RPM is a
problem.  Can he pull the RPM and reinstall the v3 RPM?  Otherwise, you'll
have to restore the binary directory & all the RPM database section, too
(can't remember off the top of my head where that is).
 
Do a restore with the overwrite, too (no "-K" flag on bprestore).
 
You'll have to identify all the code you need to rollback.
 
Might be easier to rebuild the webserver & just put the HTML/PHP back in
from backups.
 
Sorry - looks like a lot of work.
 
-M

-----Original Message-----
From: James K. Wade [mailto:james AT lim DOT com]
Sent: Tuesday, August 12, 2003 2:18 PM
To: Donaldson, Mark
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Image Restore



Howdy Mark,

 

I tried using that initially, but it does not delete anything that was
added.

ie....The developer installed rpm packages on his linux box (php4)

(mysql) and a new apache version.  Problem is that the code the website

was written in (php3) crashed and burned when running with php4.

 

So, the developer wants to go back in time and have the unit the same

as it was a week ago. Using the -s & -e flag will only restore the files

the way they were, but if he added a rpm of php4, it will still be there.

At least that's what the developer is seeing when I used -s & -e.

 

Anyway around this. I didn't see a way to tell bprestore to remove any

files that are new or did I miss it?

 

Cheers and Thanks...James

 

-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com] 
Sent: Tuesday, August 12, 2003 2:10 PM
To: James K. Wade; veritas-bu AT mailman.eng.auburn DOT edu
Subject: {Spam?} RE: [Veritas-bu] Image Restore

 

Yup.  The bprestore command has "-s" & "-e" flags for a start & end date
range.

 

-M

 

SYNOPSIS
 /usr/openv/netbackup/bin/bprestore   [-A    |    -B]    [-BR
  be_redirection_path]  [-F file_options] [-K] [-l | -H |
  -y] [-r] [-T] [-L progress_log [-en]] [-R  rename_file]
  [-C   client]   [-D   client]  [-S  master_server]  [-t
  policy_type] [-p policy] [-s mm/dd/yy  [hh:mm:ss]]  [-e
  mm/dd/yy     [hh:mm:ss]]     [-w     [hh:mm:ss]]    [-k
  "keyword_phrase"] -f listfile | filenames

-----Original Message-----
From: James K. Wade [mailto:james AT lim DOT com]
Sent: Tuesday, August 12, 2003 1:40 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Image Restore

Howdy,

 

I've done restores using both the gui and the command

line, but I have a system that needs to be a certain image

on a certain date.

 

A developer was working with a production apache, mysql,

& php linux box and it does not work. He want to restore

the image of the box on a specific date.

 

Can this be done on the command line?

 

Thanks...James


------_=_NextPart_001_01C36111.2B8B17A0
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">


<META content="MSHTML 5.50.4926.2500" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.emailstyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff size=2>I 
thinkyou only have one choice,</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2>Delete 
all the bad code (or move to another location - much safer), and restore the 
entire directory tree from the old backup.&nbsp; The RPM is a problem.&nbsp; 
Can 
he pull the RPM and reinstall the v3 RPM?&nbsp; Otherwise, you'll have to 
restore the binary directory &amp; all the RPM database section, too (can't 
remember off the top of my head where that is).</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff size=2>Do a 
restore with the overwrite, too (no "-K" flag on bprestore).</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2>You'll 
have to identify all the code you need to rollback.</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff size=2>Might 
be easier to rebuild the webserver &amp; just put the HTML/PHP back in from 
backups.</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff size=2>Sorry 
- looks like a lot of work.</FONT></SPAN></DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=113303020-12082003><FONT face=Arial color=#0000ff 
size=2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> James K. Wade 
  [mailto:james AT lim DOT com]<BR><B>Sent:</B> Tuesday, August 12, 2003 2:18 
  PM<BR><B>To:</B> Donaldson, Mark<BR><B>Cc:</B> 
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu] 
Image 
  Restore<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Howdy 
  Mark,</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 
Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I tried using that 
  initially, but it does not delete anything that was added.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ie&#8230;.The 
developer 
  installed rpm packages on his linux box (php4)</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">(mysql) and a new 
  apache version.&nbsp; Problem is that the code the website</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">was written in 
(php3) 
  crashed and burned when running with php4.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 
Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">So, the developer 
  wants to go back in time and have the unit the same</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">as it was a week 
ago. 
  Using the &#8211;s &amp; -e flag will only restore the files</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">the way they were, 
  but if he added a rpm of php4, it will still be there.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">At least 
that&#8217;s what 
  the developer is seeing when I used &#8211;s &amp; -e.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 
Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Anyway around this. 
I 
  didn&#8217;t see a way to tell bprestore to remove any</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">files that are new 
or 
  did I miss it?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 
Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Cheers and 
  Thanks&#8230;James</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 
Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original 
  Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> 
Donaldson, 
  Mark [mailto:Mark.Donaldson AT experianems DOT com] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, August 12, 2003 2:10 
  PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> James K. Wade; 
  veritas-bu AT mailman.eng.auburn DOT edu<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Subject:</SPAN></B> {Spam?} RE: [Veritas-bu] Image 
  Restore</SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=blue 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Yup.&nbsp; The 
  bprestore command has "-s" &amp; "-e" flags for a start &amp; end date 
  range.</SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=blue 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 
Arial">-M</SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Courier New" 
  color=blue size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: blue; FONT-FAMILY: 'Courier 
New'">SYNOPSIS<BR>&nbsp;/usr/openv/netbackup/bin/bprestore&nbsp;&nbsp; 
  [-A&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; -B]&nbsp;&nbsp;&nbsp; 
[-BR<BR>&nbsp; 
  be_redirection_path]&nbsp; [-F file_options] [-K] [-l | -H |<BR>&nbsp; -y] 
  [-r] [-T] [-L progress_log [-en]] [-R&nbsp; rename_file]<BR>&nbsp; 
  [-C&nbsp;&nbsp; client]&nbsp;&nbsp; [-D&nbsp;&nbsp; client]&nbsp; [-S&nbsp; 
  master_server]&nbsp; [-t<BR>&nbsp; policy_type] [-p policy] [-s 
mm/dd/yy&nbsp; 
  [hh:mm:ss]]&nbsp; [-e<BR>&nbsp; mm/dd/yy&nbsp;&nbsp;&nbsp;&nbsp; 
  [hh:mm:ss]]&nbsp;&nbsp;&nbsp;&nbsp; [-w&nbsp;&nbsp;&nbsp;&nbsp; 
  [hh:mm:ss]]&nbsp;&nbsp;&nbsp; [-k<BR>&nbsp; "keyword_phrase"] -f listfile | 
  filenames</SPAN></FONT></P></DIV>
  <BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0in">
    <P class=MsoNormal 
    style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in"><FONT 
    face=Tahoma size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original 
    Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> James 
K. 
    Wade [mailto:james AT lim DOT com]<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, August 12, 2003 1:40 
    PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
    veritas-bu AT mailman.eng.auburn DOT edu<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Veritas-bu] Image 
    Restore</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Howdy,</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I&#8217;ve done restores using 
both 
    the gui and the command</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">line, but I have a system that 
    needs to be a certain image</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">on a certain 
    date.</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">A developer was working with a 
    production apache, mysql,</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&amp; php linux box and it does 
    not work. He want to restore</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">the image of the box on a 
    specific date.</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can this be done on the command 
    line?</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: 
Arial">Thanks&#8230;James</SPAN></FONT></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C36111.2B8B17A0--

<Prev in Thread] Current Thread [Next in Thread>