Re: [Zope] merging zodb's
Dieter Maurer wrote: The "mount-point" syntax is: mount-point [:] where "localpath" is the path where the storage is mounted in this instance and "remotepath" is the path to the object to be mounted in the storage. If not given "" defaults to "localpath". I've checked this in as a note in the trunk zope.conf skeleton so hopefully it will become more widely spread knowledge :-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
Chris Withers wrote at 2008-4-2 09:29 +0100: >David Bear wrote: >> >> # ssw file store >> >> path $INSTANCE/var/srvx-Data.fs >> >> mount-point /support >> > >This will try and mount an object with the id of 'support' off the root >of the zodb in srvx-Data.fs. > >You need to find the right chickens in the config chunk above to say >"actually mount the root of the zodb in srvx-Data.fs as /support" The "right chickens" is probably: mount-point /support:/ The "mount-point" syntax is: mount-point [:] where "localpath" is the path where the storage is mounted in this instance and "remotepath" is the path to the object to be mounted in the storage. If not given "" defaults to "localpath". -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
David Bear wrote: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support This will try and mount an object with the id of 'support' off the root of the zodb in srvx-Data.fs. You need to find the right chickens in the config chunk above to say "actually mount the root of the zodb in srvx-Data.fs as /support" It's certainly possible and I remember it coming up on the lists before, but it was pretty barroque and so I've forgotten :-S cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
- Original Message - From: "David Bear" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 01, 2008 6:29 PM Subject: [Zope] merging zodb's I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? A shot in the dark, because I am not sure what you mean by "a dead zope instance"... Create an external method that you can access from the 'non-dead zope instance', which directly accesses the Data.fs file from the "dead zope instance" (using the usual db.open/root=connection.root...) and then loops thru all of the objects from the root down and copies them into the 'live' zope instance. hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
On Apr 1, 2008, at 3:29 PM, David Bear wrote: I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? This is not well documented but I believe you can only mount a subitem from the database, not the root of the database. So rename the mount point to the name of the subitem you want to mount and I think it should work. Ric ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] merging zodb's
I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? -- David Bear College of Public Programs/ASU 411 N Central, Phoenix, AZ 85004 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )