10 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
Nikita Korolev
66c057b4e2
enable shell linter for more scripts (#3748) 2025-06-14 06:50:26 +07:00
Mohamed Elneily
1bb22c032d
fix: Remove the extra space in the log file names (#3212)
Update `_lib.sh` to remove the extra space in the log file name.
This fixes the log files name not being included in `.gitinore`
2024-12-29 18:19:04 +00:00
Hubert Deng
168330c211
Parameterize backup restore script (#2412)
* parameterize backup restore script
2024-01-16 08:57:24 -08:00
Alex Zaslavsky
4485640bdd
feat(backup): Support new backup script (#2407)
Closes getsentry/team-ospo#184
2023-09-20 09:32:14 -07:00
Alex Bouma
5e1e74b391
Fix command called in reset script (#2254)
Fix incorrectly named function for reset script
2023-07-07 15:14:48 -07:00
montaniasystemab
9f191ab311
Fixed docker compose issue in backup/restore (#2110)
The docker-compose command was hard coded in backup and restore routines. Replaced with `$dc` variable instead
2023-04-28 09:13:19 -07:00
Hubert Deng
03a2cdd8e1
Remove clean function testing line (#2082)
remove testing clean script line
2023-04-13 12:03:40 -07:00
Hubert Deng
688c65f239
Tweak permissioning of backup file in backup script to read/write for all users (#2043)
change permission of backup file to read/write for all users
2023-04-11 09:00:01 -07: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