Table of contents / Operations
Sometimes it's useful to have production data running locally in rethinkdb for debugging and testing. To get production data running locally, follow these steps:
- Go to http://localhost:8080/#tables and delete the local 'spectrum' table
- Log in to the Space Program AWS console
- Go to S3 > Spectrum Backups > Hourly
- Download the latest backup .tar.gz
- Unzip that backup onto your desktop
- Rename the unzipped directory to 'prod-backup'
- In your terminal, run:
cd ~/Desktop && rethinkdb import -d prod-backup
- The import will take a couple hours, at which point you can clear localstorage at localhost:3000 to re-authenticate