wiki:sentry_backup
Table of Contents
Backup sentry
For version before 23.3.1 run this from self-hosted-sentry directory:
chmod o+w sentry docker-compose run -v $(pwd)/sentry:/sentry-data/backup --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export /sentry-data/backup/backup.json mv sentry/backup.json /root/sentry-config-backup_$(date +%F).json
The above will only backup users and projects, not historic event data.
Tested on
- Sentry 22.10.0
See also
References
wiki/sentry_backup.txt · Last modified: 2023/08/31 13:26 by antisa