Content Migration from Plone 3 to Plone 4
The following example demonstrates the process of content migration from Plone 3.2.3 to Plone 4.0 instance (both Plone 3.2.3 and Plone 4.0 are buildout-based instances).
To migrate content from Plone 3 website to Plone 4 you have to complete the following steps:
Content EXPORT from old Plone 3.2.3 instance
We have a Plone 3.2.3 site containing several folders with different content items within that we want to migrate to a brand new Plone 4 site.
- Add quintagroup.transmogrifier to Plone 3 instance buildout, re-run buildout and restart instance (see detailed installation instructions below).
- Install Marshall and quintagroup.transmogrifier products in Pone (Site Setup -> Add-on Products).
- You should now have Content migration item appeared under Add-on Product configuration.
Here you can configure export configuration if needed (see Export/import configuration below).
- Go to Zope Management Interface and in portal_setup -> Export tab check Content (transmogrifier) step:
Perform Export selected steps by hitting the corresponding button at the bottom of a page:
Archive file with exported content will be returned to you. Save it somewhere.
This is all you need to do on the old Plone 3 instance. Now it's time to open your new Plone 4 site.
Content IMPORT to new Plone 4.0 instance
We have a brand-new Plone 4.0 site containing no custom content, only the ones that come with default Plone creation.
- Add quintagroup.transmogrifier to Plone 4 instance buildout, re-run buildout and restart instance (see detailed installation instructions below).
- Install Marshall and quintagroup.transmogrifier products in Plone (Site Setup -> Add-on Products).
- You should now have Content migration item appeared under Add-on configuration.
Here you can configure export configuration if needed (see Export/import configuration below).
- Go to Zope Management Interface and navigate to portal_setup -> Import tab:
Use Browse... button to point to archive file with exported content (at button at the bottom of a page):
Import content by hitting Import uploaded tarball button:
Now content from Plone 3 site is available on Plone 4 site:
CONGRATULATIONS! You've just migrated content between different Plone sites.
Installation on buildout
You have to install quintagroup.transmogrifier to both instances. So, complete the following steps on both instances buildouts.
- Add quintagroup.transmogrifier to eggs section and to the ZCML area of buildout.cfg file in the root of your instance:
[instance] .... eggs = .... quintagroup.transmogrifier recipe = ... ... zcml = quintagroup.transmogrifier
- Re-run buildout with:
$ ./bin/buildout
- Restart the Zope server with the following command in the terminal:
$ ./bin/instance restart
- Activate quintagroup.transmogrifier via Quickinstaller in Plone: Site Setup -> Add-ons. If everything is OK - a new Content migration item should appear in the Add-on products configuration control panel.
Export/import configuration
Default configuration of Quintagroup transmogrifier product is prepared to migrate site with archetypes-based content types, with standard archetype fields, properties and workflows.
Site with specific content types or archetype fields needs customization of export/import configuration.
Content migration configlet has export and import configurations, which is used by transmogrifier.
Look to collective.transmogrifier documentation to get into pipeline, blueprints and other transmogrifier-related stuff.
If you need - you can write your own blueprints, and register a desired utility which will perform import/export of some special stuff from objects. Then you may use created blueprint(s) in export/import configurations of the configlet.
The default configuration is registered in ZCML and it's initially displayed in the form. If you click 'Save' button for the first time it will be persisted in database and will override the default configuration. To switch back to default configuration simply leave blank input area and click 'Save'.
IMPORTANT NOTE
For importing/exporting content you have to use Python with libxml2 library support or Products.Marshall >=1.2.1. The requirement comes from quintagroup.transmogrifier using atxml namespace, while Products.Marshall <1.2.1 requires libxml2 library to register that namespace.
Attachments (15)
- plone3.png (75.1 KB) - added by olha 14 years ago.
- plone3-addons.png (57.2 KB) - added by olha 14 years ago.
- plone3-config1.png (46.6 KB) - added by olha 14 years ago.
- plone3-export-save.png (79.6 KB) - added by olha 14 years ago.
- plone3-export-steps.png (39.8 KB) - added by olha 14 years ago.
- plone3-config.png (37.5 KB) - added by olha 14 years ago.
- plone3-porltal-setup.png (48.0 KB) - added by olha 14 years ago.
- plone4.png (41.0 KB) - added by olha 14 years ago.
- plone4-addons.png (87.7 KB) - added by olha 14 years ago.
- plone4-browse.png (21.1 KB) - added by olha 14 years ago.
- plone4-config.png (43.7 KB) - added by olha 14 years ago.
- plone4-import-tarball.png (22.5 KB) - added by olha 14 years ago.
- plone4-portal-setup.png (42.5 KB) - added by olha 14 years ago.
- plone4-config1.png (43.1 KB) - added by olha 14 years ago.
- plone4-imported.png (57.2 KB) - added by olha 14 years ago.
Download all attachments as: .zip