You are here:   » Home » Documentation » Details » How-To » Import/Export/XML » Migrating Images

Migration of Image Data: Transfer of Media-Folder-Objects between ZMS-Clients

Author: F. Hoffmann, 2003/05/30

Content nodes or the entire site shall be transferred from a ZMS client having activated the media-folder-mechanism for file-system-storage of media objects to another ZMS client.

Screen section ZMS configuration: Deletion of the mediafolder option leads to re-import of image data into the ZODB

ZMS stores image objects either in the ZODB or in the file system if a "media folder" path has been specified in the ZMS configuration; the ZMS image objects then always refer to this directory and quasi hand over the data. The data storage happens with definite IDs (file name extensions).

XML-Export: The common ZMS-XML-export generates recursively an XML-data stream with consistent references to the media objects that are packed in the exported Zip-file in form of a file hierarchy. In this way it is possible to transfer contents per XML-Export without leaving the ZMS interface; so it is not needed to copy the media folder operating-system-sided.

Media-Folder-Migration: If an exact mirroring of a bigger ZMS-client to another computer shall happen and thereby with the data transfer also all object-IDs shall be transferred identically to the target system, the Zope-based export of the complete ZMS content object (resp. of the client folder incl. all templates) is recommended. Therefore a re-import of the media-folder-objects is conducted at the initial system; the migration runs in the following way:

  1. at the initial system, the mediaDB-option (path) is deactivated via the central configuration: ZMS then imports all objects from the local file system back again to the ZODB
  2. generate a ZEXP-export file of the complete client per ZOPE
  3. import the ZEXP-export file to the targeted computer
  4. in the configuration of the targeted ZMS, again activate the mediaDB-option through specification of a new path: ZMS exports the image objects into the addressed file system and sets the corresponding image object references newly there

View of the media-folder-objects at directory level; the Zope manager gets the acl_mediadb-object producing this view in the Zope-mode of ZMS (Z-Button top right).

Print this Document   change language   Sitemap   Contact