Backup and Restore
Using restore.py
restore.py
should be used in catastrophic scenarios.
- Make sure all the Elasticsearch configuration environmental variables are set
- Run
pipenv run python restore.py --dump -o backup.zip -p secret
- Stop the Reflex API
- Set
REFLEX_RESTORE_MODE=true
in your environment variables - Delete all Reflex indices from Elasticsearch
- Restart Reflex
- Wait for initial index setup to complete
- Run
pipenv run python restore.py -a backup.zip -p secret
- Stop Reflex
- Unset
REFLEX_RESTORE_MODE
- Restart Reflex