A simple tool to dump and load CiviCRM configuration.
Go to file
naomi 27bd1d835b minor edit to readme 2022-02-03 07:19:32 +02:00
.gitignore Fix .gitignore so we i can have a .env laying around for testing. 2021-11-22 14:59:23 -08:00
README.md minor edit to readme 2022-02-03 07:19:32 +02:00
confdump.py Add README for steps to load data into test instance. fix error in code. add requirements.txt 2022-02-02 21:13:07 -08:00
example.env Add README for steps to load data into test instance. fix error in code. add requirements.txt 2022-02-02 21:13:07 -08:00
requirements.txt Add README for steps to load data into test instance. fix error in code. add requirements.txt 2022-02-02 21:13:07 -08:00
tox.ini Initial checkin 2021-11-22 14:52:03 -08:00

README.md

  • Needs working local CiviCRM from caat-crm-installer
  • In confdump path, virtualenv confdump.venv
  • Load the virtualenv . confdump.venv/bin/activate
  • Install pre-dependencies for MySQL client https://pypi.org/project/mysqlclient/ (on dpkg based linux: sudo apt install python3-dev default-libmysqlclient-dev build-essential)
  • Install requirements pip -i requirements.txt
  • Fill out example.env for the production, test or development server you'll retrieve the data from.
  • Execute dump to retrieve base data: env $(cat example.env) python ./confdump.py dump -o mydata INSTANCEPATH where INSTANCEPATH is something like https://crm.dev.caat.org.uk/.
  • Load data into running local instance with: python confdump.py mysql -i mydata/ -p 63306
  • Clear the cache in CiviCRM from the caat-crm-installer directory with make shell, and then inside cd /app; ./vendor/bin/drush cc all