Migrating from Canopy 2
On the Canopy 2 server as root
- Upgrade to latest version of Canopy 2 which includes the export functionality
/opt/checksec/canopy/bin/python /opt/checksec/canopy/canopy_server/manage.py exportdata canopy2data.tgz
On the new Canopy 3 server as root
- Copy canopy2data.tgz to Canopy 3 server.
Follow the steps Installation for Canopy 3, skip the `createsuperuser` step as indicated.
- 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
- Configure the default database and user using
canopy-setup database
Setup a clean production dataset using:
canopy-manage setupdb --prod
- Decompress the archive:
gzip -d canopy2data.tgz
- Make sure that your
contentfieldmapping.json
andcustomfields.json
files are also in the current directory, where canopy2data.tgz is. canopy-manage importcanopy2 canopy2data.tar |& tee importer.log
supervisorctl restart canopy canopy-celery