RE: [Zope] How to backup Zope data base?
This certainly isn't *efficient*, but it works: wget -http-user=usename -http-pass=password http://your.site.com/Zope/path/to/wherever/manage_exportObject?download%3Ain t=1 Will get you a .zexp of "/path/to/wherever", whereas: wget <blah> http://your.site.com/Zope/manage_exportObject?download%3Aint=1&toxml=Y Will get you an XML export of your entire site. Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Etienne Labuschagne [mailto:etiennel@geospace.co.za] Sent: 18 January 2001 07:26 To: Zope user list (E-mail) Subject: [Zope] How to backup Zope data base? Hi all What is the best way to backup Zope's database whithout stopping Zope? When I use backup, it just says that the file is in use and cannot be backed up. What I have done so far is to copy the file in explorer and back that up - but it feels kludgey and I'm not sure if I get the database in a state that is safe. Thanks all Etienne Tel: (012) 348 4586 Cel: 082 442 8981 Fax: (012) 361 8355 _______________________________________________ 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 )
On Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip J" <p.mayers@ic.ac.uk> wrote:
This certainly isn't *efficient*, but it works:
Not here. Does it depend on a specific version of Zope? I have 2.2.2. Creating the zexp works but not the XML: wallis:~/tmp> wget --http-user=bortz --http-pass=jelediraipas 'http://www.pasteur.fr:9673/manage_exportObject?download%3Aint=1&toxml=Y' --09:29:08-- http://www.pasteur.fr:9673/manage_exportObject?download%3Aint=1&t oxml=Y => `manage_exportObject?download:int=1&toxml=Y' Connecting to www.pasteur.fr:9673... connected! HTTP request sent, awaiting response... 401 Unauthorized Connecting to www.pasteur.fr:9673... connected! HTTP request sent, awaiting response... 500 Internal Server Error 09:29:08 ERROR 500: Internal Server Error. Z2.log contains nothing useful: 157.99.64.24: - - [19/Jan/2001:09:29:08 +0200] "GET /manage_exportObject?download%3Aint=1&toxml=Y HTTP/1.0" 500 2631 "" "Wget/1.5.3"
On Fri, 19 Jan 2001, Stephane Bortzmeyer wrote:
On Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip J" <p.mayers@ic.ac.uk> 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 <flight@debian.org> 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?do... => `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=1&toxml=Y
But this doesn't work :-( --15:33:48-- http://localhost:9673/Control_Panel/Products/DebianAT/manage_exportObject?do... => `manage_exportObject?download:int=1&toxml=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.
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" <p.mayers@ic.ac.uk> 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
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.
participants (4)
-
Andreas Tille -
Chris Withers -
Mayers, Philip J -
Stephane Bortzmeyer