Skip to content

Import Previous Data

amirsadraabdollahi edited this page Jul 28, 2026 · 3 revisions

Migrate

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 pull to the same version you wish to import data into.
  • Run python manage.py migrate and 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.

Backup and Restore

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_db Makefile targets and the /postgres/maintenance scripts no longer exist.

Clone this wiki locally