-
Notifications
You must be signed in to change notification settings - Fork 13
Import Previous Data
amirsadraabdollahi edited this page Jul 28, 2026
·
3 revisions
When you want to import old Rodan data, you will have to update the old databases to use the current models. Meaning, you will have to:
- Take down Rodan
- Run
git pullto the same version you wish to import data into. - Run
python manage.py migrateand fix all errors, hopefully without deleting anything. - Once you Rodan working again, you can finally dump the database, and load it in the new rodan instance.
Bulk of Rodan data is held in a PostgreSQL database, so backing up and restoring it is important. In the current Kubernetes deployment, dump/restore is done against the postgres pod with kubectl exec (pg_dump / pg_restore / psql). See k8s/POSTGRES_UPGRADE.md for the current procedure.
Note: the old
backup_db/restore_dbMakefile targets and the/postgres/maintenancescripts no longer exist.
- Repository Structure
- Working on Rodan
- Testing Production Locally
- Working on Interactive Classifier
- Job Queues
- Testing New Docker Images
- k8s Deploy Runbook (k8s/README.md)
- Set up Environment Variables
- Set up SSL with Certbot
- Set up SSH with GitHub
- Deploying on Staging
- Deploying on Production
- Import Previous Data