On Thu, Feb 10, 2011 at 3:46 PM, Shane Hathaway <sh...@hathawaymix.org>wrote:
> On 02/10/2011 07:41 AM, Shane Hathaway wrote: > >> On 02/10/2011 06:30 AM, Santi Camps wrote: >> >>> I was trying to move a database copy a relstorage zodb and having some >>> issues. The original zodb is mounted using a mount point /original_path >>> If I restore the backup of the database and mount it using exactly >>> the same mount point /original_path in the destination zope, all goes >>> right. But what I want is to replicate the original database N times, >>> so need to have /destination_pathN in the mount point. When I do that, >>> the database seems empty (no object is shown in the mounted point). >>> >> >> The normal way to copy objects in ZODB is through ZEXP export and >> import. Have you tried that? Also, what is your goal? >> > > Um, I see you mentioned that you're trying to avoid ZEXP. Ok. ;-) > > The question remains: What are you trying to accomplish? > > The objective is to duplicate a storage using different mount points. For instance, if we have Database1 -> mount_point_1 , create Database2 and Database3 as copies of Database1 (using pg_dump & pg_restore), and then mount them as mount_point_2 and mount_point_3 It works if I mount Database2 or Database3 with the same mount_point name (mount_point_1), but when mount point name changes, objects inside are not seen. It seems like a problem with some reference to the root object in the ZODB, but not able to fix it (don't now if it's possible, in fact) Thanks for your answers Santi Camps
_______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev