[Zope] Backing Up Zope (was: Re: [Zope] Data.fs.lock?)

Wilkinson Charlie E Charlie.E.Wilkinson@irs.gov
Thu, 29 Jun 2000 13:35:45 -0400


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_01BFE1F0.75606CDC
Content-Type: text/plain;
	charset="iso-8859-1"

Just to start by pointing out the bloody obvious:

- Restoring from backup means you lose all data between
  backup date/time and system failure.  Sucks, but it
  beats losing *all* your data.  (RAID5 anyone?)
- With that in mind, *consistency* of the backup database
  takes the highest priority.  All existing transactions
  should be fully completed - no half-done updates, etc.

It seems to me that the easiest way to get there with ZODB
might be to just make a simple file copy of the database and
have some kind of integrity checking tool to run against the
static backup copy to weed out the junk.  Is this possible,
does it already exist?

Probably a dumb question, but would Zope itself do this if
you fired it off against an inconsistent ZODB?

Another random thought is that if ZODB transactions and
writes are atomic, than none of this should be an issue.
Anyone know the answer to that one?

-cw-

> -----Original Message-----
> From: Chris Withers [mailto:chrisw@nipltd.com]
> Sent: Thursday, June 29, 2000 7:49 AM
> To: Erik Enge
> Cc: Oleg Broytmann; Zope Mailing List
> Subject: [Zope] Backing Up Zope (was: Re: [Zope] Data.fs.lock?)
> 
> 
> Erik Enge wrote:
> > 
> > On Thu, 29 Jun 2000, Chris Withers wrote:
> > 
> > > Hmm, about extending this so you have 'rotating data.fs 
> files' in the
> > > same way you have rotating log files?
> > 
> > In general, yes :-).  Do you think it would be solving the 
> right problem
> > the right way?
> 
> I think so, but that's only my view.
> 
> If anyone's got any better ideas, please pipe up :-)
> 
> cheers,
> 
> Chris
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

------_=_NextPart_001_01BFE1F0.75606CDC
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Zope] Backing Up Zope (was: Re: [Zope] =
Data.fs.lock?)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Just to start by pointing out the bloody =
obvious:</FONT>
</P>

<P><FONT SIZE=3D2>- Restoring from backup means you lose all data =
between</FONT>
<BR><FONT SIZE=3D2>&nbsp; backup date/time and system failure.&nbsp; =
Sucks, but it</FONT>
<BR><FONT SIZE=3D2>&nbsp; beats losing *all* your data.&nbsp; (RAID5 =
anyone?)</FONT>
<BR><FONT SIZE=3D2>- With that in mind, *consistency* of the backup =
database</FONT>
<BR><FONT SIZE=3D2>&nbsp; takes the highest priority.&nbsp; All =
existing transactions</FONT>
<BR><FONT SIZE=3D2>&nbsp; should be fully completed - no half-done =
updates, etc.</FONT>
</P>

<P><FONT SIZE=3D2>It seems to me that the easiest way to get there with =
ZODB</FONT>
<BR><FONT SIZE=3D2>might be to just make a simple file copy of the =
database and</FONT>
<BR><FONT SIZE=3D2>have some kind of integrity checking tool to run =
against the</FONT>
<BR><FONT SIZE=3D2>static backup copy to weed out the junk.&nbsp; Is =
this possible,</FONT>
<BR><FONT SIZE=3D2>does it already exist?</FONT>
</P>

<P><FONT SIZE=3D2>Probably a dumb question, but would Zope itself do =
this if</FONT>
<BR><FONT SIZE=3D2>you fired it off against an inconsistent =
ZODB?</FONT>
</P>

<P><FONT SIZE=3D2>Another random thought is that if ZODB transactions =
and</FONT>
<BR><FONT SIZE=3D2>writes are atomic, than none of this should be an =
issue.</FONT>
<BR><FONT SIZE=3D2>Anyone know the answer to that one?</FONT>
</P>

<P><FONT SIZE=3D2>-cw-</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Chris Withers [<A =
HREF=3D"mailto:chrisw@nipltd.com">mailto:chrisw@nipltd.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Thursday, June 29, 2000 7:49 AM</FONT>
<BR><FONT SIZE=3D2>&gt; To: Erik Enge</FONT>
<BR><FONT SIZE=3D2>&gt; Cc: Oleg Broytmann; Zope Mailing List</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: [Zope] Backing Up Zope (was: Re: =
[Zope] Data.fs.lock?)</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Erik Enge wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; On Thu, 29 Jun 2000, Chris Withers =
wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; Hmm, about extending this so you have =
'rotating data.fs </FONT>
<BR><FONT SIZE=3D2>&gt; files' in the</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &gt; same way you have rotating log =
files?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; In general, yes :-).&nbsp; Do you think it =
would be solving the </FONT>
<BR><FONT SIZE=3D2>&gt; right problem</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; the right way?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I think so, but that's only my view.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; If anyone's got any better ideas, please pipe =
up :-)</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; cheers,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Chris</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; Zope maillist&nbsp; -&nbsp; =
Zope@zope.org</FONT>
<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope</A></FONT>=

<BR><FONT SIZE=3D2>&gt; **&nbsp;&nbsp; No cross posts or HTML =
encoding!&nbsp; **</FONT>
<BR><FONT SIZE=3D2>&gt; (Related lists - </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; <A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-announce" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-announce</=
A></FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; <A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-dev" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-dev</A> =
)</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BFE1F0.75606CDC--