mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
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
This commit is contained in:
parent
0daead62b6
commit
9f191ab311
@ -62,11 +62,11 @@ function clean() {
|
||||
function backup() {
|
||||
touch $(pwd)/sentry/backup.json
|
||||
chmod 666 $(pwd)/sentry/backup.json
|
||||
docker-compose run -v $(pwd)/sentry:/sentry-data/backup --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export /sentry-data/backup/backup.json
|
||||
$dc run -v $(pwd)/sentry:/sentry-data/backup --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web export /sentry-data/backup/backup.json
|
||||
}
|
||||
|
||||
function restore() {
|
||||
docker-compose run --rm -T web import /etc/sentry/backup.json
|
||||
$dc run --rm -T web import /etc/sentry/backup.json
|
||||
}
|
||||
|
||||
# Needed variables to source error-handling script
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user