How would it be possible to create a transportable snapshot of a subset of the Zope pseudo-filesystem tree? My plan is: I grab a bundled snapshot of, say, http://box1/devel/catalog and install it under http://box2/live/catalog. Is this possible? And, is there any existing way to do this, or will I have to code it? --- Julian Morrison Programmer (Zereau Ltd)
On Mon, 22 Feb 1999 julian@zereau.net wrote:
How would it be possible to create a transportable snapshot of a subset of the Zope pseudo-filesystem tree?
My plan is: I grab a bundled snapshot of, say, http://box1/devel/catalog and install it under http://box2/live/catalog.
Is this possible? And, is there any existing way to do this, or will I have to code it?
I believe the new version of Zope will have a nice (ie part of the management functionality) way to do this. For now just visit the folder you are interested in creating a snapshot and add to the URL manage_exportHack. ie http://box1/devel/catalog/manage_exportHack this will create a file in Zope's var directory named export.bbe containing the snapshot. To import it somewhere in a Zope folder just visit that folder and add to the URL manage_importHack ie http://box1/live/catalog/manage_importHack Are you trying to create and use this snapshot on the same Zope installation? In anyway you can move the export.bbe file from one machine to the other and use the same method. If you need to transfer the snapshot from one place of the Zope virtual filesystem to another which is also part of the same Zope instance then there are better methods to do it. (Just copy and paste for example, or taking a hint from the URL's you used you might want to use Sessions) Pavlos
On 22-Feb-99 Pavlos Christoforou wrote:
http://box1/devel/catalog/manage_exportHack http://box1/live/catalog/manage_importHack
Excellent! Exactly what I was hoping to hear.
(Just copy and paste for example, or taking a hint from the URL's you used you might want to use Sessions)
I wish Zope let me alter the object's ID, since without this, copy/paste is of very limited use to me. Since the IDs appear in the URL, they *MUST* be pretty. --- Julian Morrison Programmer (Zereau Ltd)
On 22-Feb-99 Pavlos Christoforou wrote:
On Mon, 22 Feb 1999 julian@zereau.net wrote:
I wish Zope let me alter the object's ID, since without this, copy/paste is of very limited use to me. Since the IDs appear in the URL, they *MUST* be pretty.
Use rename.
Oops. Silly me. My only excuse is the unintuitiveness of having this separate from the manage screen. --- Julian Morrison Programmer (Zereau Ltd)
On 22-Feb-99 Pavlos Christoforou wrote:
http://box1/devel/catalog/manage_exportHack http://box1/live/catalog/manage_importHack
Will these work across versions? (to let me export my database from version 1.9 and load it in version 1.10) --- Julian Morrison Programmer (Zereau Ltd)
On 22-Feb-99 Pavlos Christoforou wrote:
http://box1/devel/catalog/manage_exportHack http://box1/live/catalog/manage_importHack
Will these work across versions? (to let me export my database from version 1.9 and load it in version 1.10)
It just did for me :) Anthony
At 13:29 22/02/99 , julian@zereau.net wrote:
How would it be possible to create a transportable snapshot of a subset of the Zope pseudo-filesystem tree?
My plan is: I grab a bundled snapshot of, say, http://box1/devel/catalog and install it under http://box2/live/catalog.
Is this possible? And, is there any existing way to do this, or will I have to code it?
I've understood from DC that the upcoming version of Zope (1.10) will include an import/export function that can do that too. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (4)
-
Anthony Baxter -
julian@zereau.net -
Martijn Pieters -
Pavlos Christoforou