[Zope] Re: How to backup Zope data base?

2001-01-22 Thread Andreas Tille

On Fri, 19 Jan 2001, Chris Withers wrote:

 That's actually a really bad way to back up Zope :-S
 
 Copying data.fs is much more reliable and _much_ less strenuous on your server,
 especially if it's a big Data.fs
But I really want to do the backup on a "per project" basis because
I often work on a laptop and really don't need all of the projects
in data.fs.  Is there any reason *why* this is a "bad way"?

Kind regards

Andreas.


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Re: How to backup Zope data base?

2001-01-22 Thread Chris Withers

"Mayers, Philip J" wrote:
 
 Well, bad _technically_, or bad _evil_?

Well, doing an XML export as opposed to a cp is probably a lot more
processor-intensive...

 It does have the sole advantage you can pull a portion of your tree, 

true...

 and
 some people have had Data.fs problems (not me thankfully). But in general
 I'd guess backing up Data.fs to be the best way. How does it copy with
 non-atomicity of disk writes?

Very well, apparently :-) It's a sequential transaction log, so, at worst,
you'll loose the last transaction...

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Re: How to backup Zope data base?

2001-01-19 Thread Andreas Tille

On Fri, 19 Jan 2001, Stephane Bortzmeyer wrote:

 On Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip J" 
 [EMAIL PROTECTED] wrote:
 
  This certainly isn't *efficient*, but it works:
This is great because absolutely the thing I was looking for ...
Thanks for the zexp part Philip!

 
 Not here. Does it depend on a specific version of Zope? I have 2.2.2.
I guess I have the same Zope installation as you :)
~ dpkg --status zope
Package: zope
Status: install ok installed
Installed-Size: 7356
Maintainer: Gregor Hoffleit [EMAIL PROTECTED]
Version: 2.2.2-3

and I observed the same:


 wget -http-user=usename -http-pass=password
 http://your.site.com/Zope/path/to/wherever/manage_exportObject?download%3Ain
 t=1
This works:

--15:33:48--  
http://localhost:9673/Control_Panel/Products/DebianAT/manage_exportObject?download%3Aint=1
   = `manage_exportObject?download:int=1'
Connecting to localhost:9673... connected!
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to localhost:9673... connected!
HTTP request sent, awaiting response... 200 OK
Length: 15,173 [application/data]

0K - .. [100%]

15:33:48 (14.47 MB/s) - `manage_exportObject?download:int=1' saved [15173/15173]

 wget blah
 http://your.site.com/Zope/manage_exportObject?download%3Aint=1toxml=Y

But this doesn't work :-(

--15:33:48--  
http://localhost:9673/Control_Panel/Products/DebianAT/manage_exportObject?download%3Aint=1toxml=Y
   = `manage_exportObject?download:int=1toxml=Y'
Connecting to localhost:9673... connected!
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to localhost:9673... connected!
HTTP request sent, awaiting response... 500 Internal Server Error
15:33:48 ERROR 500: Internal Server Error.

 Will get you an XML export of your entire site.
Is there any hint what went wrong??

Kind regards

   Andreas.



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Re: How to backup Zope data base?

2001-01-19 Thread Chris Withers

Andreas Tille wrote:
 
 On Fri, 19 Jan 2001, Stephane Bortzmeyer wrote:
 
  On Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip J"
  [EMAIL PROTECTED] wrote:
 
   This certainly isn't *efficient*, but it works:
 This is great because absolutely the thing I was looking for ...
 Thanks for the zexp part Philip!

That's actually a really bad way to back up Zope :-S

Copying data.fs is much more reliable and _much_ less strenuous on your server,
especially if it's a big Data.fs

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Re: How to backup Zope data base?

2001-01-19 Thread Mayers, Philip J

Well, bad _technically_, or bad _evil_?

G

It does have the sole advantage you can pull a portion of your tree, and
some people have had Data.fs problems (not me thankfully). But in general
I'd guess backing up Data.fs to be the best way. How does it copy with
non-atomicity of disk writes?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: 19 January 2001 17:02
To: Andreas Tille
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] Re: How to backup Zope data base?


Andreas Tille wrote:
 
 On Fri, 19 Jan 2001, Stephane Bortzmeyer wrote:
 
  On Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip
J"
  [EMAIL PROTECTED] wrote:
 
   This certainly isn't *efficient*, but it works:
 This is great because absolutely the thing I was looking for ...
 Thanks for the zexp part Philip!

That's actually a really bad way to back up Zope :-S

Copying data.fs is much more reliable and _much_ less strenuous on your
server,
especially if it's a big Data.fs

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )

___
Zope maillist  -  [EMAIL PROTECTED]
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 )