GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Changelog
  • Sandbox
  • Go to Sentry
  • Get Started
  • Azure DevOps Integration
  • Bitbucket Integration
  • Discord Integration
  • GitHub Integration
  • GitLab Integration
  • Jira Integration
  • Jira Server Integration
  • Microsoft Teams Integration
  • PagerDuty Integration

This view

  • Original page
  • New address

GeezerVison is showing develop.sentry.dev — Integrations | Sentry Docs

  • Home
  • Integrations

Integrations

How to setup Sentry integrations. Integrations connect the Sentry server with other services.

Integration Backup and Restore Scripts

Overview

When working on integration development locally, your database contains important configuration that makes integrations work properly. If you run make reset-db or need to delete your local environment, you lose all this setup and have to configure integrations from scratch. There are two scripts that help you backup and restore your local Sentry integration configuration and setup data.

These scripts allow you to:

  • Backup: Save your current integration state to a JSON file
  • Restore: Load the integration state back into a clean database

What Data is Backed Up

The scripts handle the following Sentry models in the correct dependency order:

  • IdentityProvider - Authentication provider configurations
  • Integration - Integration instances and settings
  • Identity - User identity mappings
  • OrganizationIntegration - Organization-specific integration configurations

Prerequisites

  • Sentry development environment set up locally
  • Python environment with Sentry dependencies installed
  • Access to your local Sentry database

Script Files

There are two scripts (exist in sentry and getsentry):

  • save_integration_data - Backs up integration data
  • load_integration_data - Restores integration data

Usage Instructions

Step 1: Save Your Integration Data

Before running make reset-db or making any destructive changes, backup your current integration state:

Copied
# Navigate to your Sentry project directory
cd /path/to/sentry # or /path/to/getsentry

# Run the save script
bin/save_integration_data --output-file integration_backup.json
# Navigate to your Sentry project directory
cd /path/to/sentry # or /path/to/getsentry

# Run the save script
bin/save_integration_data --output-file integration_backup.json

Step 2: Restore Your Integration Data

After your database is reset and ready, restore your integration configuration:

Copied
# Basic restore (preserves original organization IDs)
bin/load_integration_data --input-file integration_backup.json
# Basic restore (preserves original organization IDs)
bin/load_integration_data --input-file integration_backup.json

Or, if you need to change the organization ID:

Copied
# Restore and update organization ID for OrganizationIntegration objects
bin/load_integration_data --input-file integration_backup.json --org-id 123
# Restore and update organization ID for OrganizationIntegration objects
bin/load_integration_data --input-file integration_backup.json --org-id 123

After restoring, all the previous integration data will be restored and you can start using the integration for local development again.

Previous
Services
Next
Azure DevOps Integration
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
How to contribute   |  Edit this page   |  Create a docs issue   |  Get support
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.