[Zope] manage_exportObject checks Referer header (RE: [Zope] How to back up Zope data base?) up Zope data base?)

Mayers, Philip J p.mayers@ic.ac.uk
Thu, 18 Jan 2001 16:10:28 -0000


My earlier suggestion:

wget --http-user=username --http-pass=password \
http://server.name/Zope/path/to/folder/manage_exportObject?download%3Aint=1

Does not work (on Zope 2.2.5 at least) but this:

wget --http-user=username --http-pass=password \
--header="Referer:
http://server.name/Zope/path/to/folder/manage_importExportForm"\
http://server.name/Zope/path/to/folder/manage_exportObject?download%3Aint=1

...does. Why does manage_exportObject check the Referer header? Is this by
design?

Regards,
Phil

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

-----Original Message-----
From: Mayers, Philip J [mailto:p.mayers@ic.ac.uk]
Sent: 18 January 2001 13:52
To: 'Etienne Labuschagne'; 'zope@zope.org'
Subject: 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 )

_______________________________________________
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 )