This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Data Backup and Restore
Sri Maurya Kummamuru edited this page Jan 20, 2021
·
2 revisions
❗ | Warning: This page is going to be retired and this documentation will be maintained at - https://github.com/OpenConceptLab/ocl-docs/ |
---|
A cron job has been setup to take backup for MongoDB which runs at midnight every Sunday.
In order to list the cronjobs on staging and production environments:
- ssh to the box
- crontab -l -- list jobs
- crontab -e -- Edit job
Run the following command to create backup
oclapi/django-nonrel/ocl/deploy/mongo_backup.sh
Backups are timestamped tar files stored under
/home/root/backups.
In order to restore data from a backup
- SSH into the environment
- Run
~/oclapi/django-nonrel/ocl/deploy/mongo_restore <backup_file_location>
- Rebuild Solr index using:
yes | docker exec -i ocl_api python manage.py rebuild_index -k 5
Overview
Resources
Import / Export
- CSV Import
- Bulk Import
- Org/Source Import
- Export API
- Subscriptions
- Subscription Client Testing Process
- OpenMRS to OCL Mapping
Troubleshooting & Operations
- Data integrity checks
- Maintaining OCLAPI's Docker containers
- Maintaining MongoDB and Solr
- How to check logs
- NewRelic monitoring setup
- Configuration changes to make tests and import job run faster
- Accessing Solr UI Remotely
- Data Backup and Restore
- SSL Configuration
- Flower
- Switching to Maintenance Mode on Production Server
- Docker networking and Security
Other