Migrating from Canopy 2

On the Canopy 2 server as root

  1. Upgrade to latest version of Canopy 2 which includes the export functionality
  2. /opt/checksec/canopy/bin/python /opt/checksec/canopy/canopy_server/manage.py exportdata canopy2data.tgz

On the new Canopy 3 server as root

  1. Copy canopy2data.tgz to Canopy 3 server.
  2. Follow the steps Installation for Canopy 3, skip the `createsuperuser` step as indicated.

  3. If you are repeating the process or if there is already data in the DB then you should delete it before continuing using: sudo -u postgresql dropdb canopy
  4. Configure the default database and user using canopy-setup database
  5. Setup a clean production dataset using: canopy-manage setupdb --prod

  6. Decompress the archive: gzip -d canopy2data.tgz
  7. Make sure that your contentfieldmapping.json and customfields.json files are also in the current directory, where canopy2data.tgz is.
  8. canopy-manage importcanopy2 canopy2data.tar |& tee importer.log
  9. supervisorctl restart canopy canopy-celery