Data registry¶
Migrate from an old server¶
Dependencies¶
Perform the same tasks as for Data support.
Update Salt configuration and halt jobs¶
For the new server:
Check that
docker.uidin the server’s Pillar file matches the entry in the/etc/passwdfile for thedocker.user(deployer).Change
cron.presenttocron.absentin thesalt/registry/init.slsfile.Comment out the
postgres.backupsection of the Pillar file.
On the old server:
Delete the
/etc/cron.d/postgres_backupsfile.docker compose downall containers, except thewebandstaticcontainers of thedata-registryservice.
Check that no crawls are running at https://collect.data.open-contracting.org/jobs.
If a crawl is running, Django administrators can cancel jobs.
Check that no messages are enqueued at https://rabbitmq.data.open-contracting.org.
If a job is running in Kingfisher Process, job owners can cancel jobs.
Filesystem¶
Copy these directories from the old server to the new server, using rsync -avz:
/data/storage/exporter/data/storage/spoonbill/home/collect/scrapyd/dbs/home/collect/scrapyd/eggs/home/collect/scrapyd/jobs/home/collect/scrapyd/logs
Databases¶
Copy the
data_registryandspoonbilldatabases from the old server to the new server, using pg_dump.
Docker apps¶
Perform the same tasks as for Data support, skipping pelican-frontend.
Restore Salt configuration and start jobs¶
Change
cron.absenttocron.presentin thesalt/registry/init.slsfile.Uncomment the
postgres.backupsection of the Pillar file.