3 Commits

Author SHA1 Message Date
Reinaldy Rafli
213423f9d9
fix(scripts): every known flags should be shifted before executing the sentry <foo> command (#3831)
Fixes https://github.com/getsentry/self-hosted/issues/3526

Previously, if this was executed:
```bash
./scripts/backup.sh --no-report-self-hosted-issues
```

The final backup command that will be executed is:
```bash
docker compose run -v "${PWD}/sentry:/sentry-data/backup" --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export --no-report-self-hosted-issues /sentry-data/backup/backup.json
```

Which is invalid. This PR strips all known flags specific to self-hosted before passing it onto Sentry.

One other option is to enable "ignore unknown options" on click (the CLI dependency) on Sentry, but I don't want to go to that route.
2025-08-07 10:14:02 +07:00
Hubert Deng
168330c211
Parameterize backup restore script (#2412)
* parameterize backup restore script
2024-01-16 08:57:24 -08:00
Hubert Deng
8fc2933c20
Add Backup/restore scripts (#2029)
* add backup/restore scripts
* refactor utils to scripts
2023-03-17 13:52:49 -07:00