|
Download spectrum/docs/operations/importing-rethinkdb-backups.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/docs/operations/importing-rethinkdb-backups.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/docs/operations/importing-rethinkdb-backups.md
-
curl -L -o importing-rethinkdb-backups.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/docs/operations/importing-rethinkdb-backups.md
744 Bytes
Table of contents / Operations
Importing production data locally
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