Skip to content

Commit 82317b9

Browse files
feat(devservices): Add instructions to migrate data from old devservices (#12451)
* add instructions to migrate data from old devservices
1 parent 5f83192 commit 82317b9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

develop-docs/development-infrastructure/devservices.mdx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,42 @@ Common modes:
7676
```shell
7777
devservices up --mode symbolicator
7878
```
79+
80+
## Migrating data from the deprecated `sentry devservices`
81+
82+
<Alert level="warning" title="Important">
83+
These instructions can result in data loss. Please proceed with caution. This is an example with postgres, but can be done with other docker volumes as well.
84+
</Alert>
85+
86+
Volume names are different for each service.
87+
88+
Clickhouse:
89+
- old: `sentry_clickhouse`
90+
- new: `snuba_clickhouse-data`
91+
92+
Postgres:
93+
- old: `sentry_postgres`
94+
- new: `sentry_postgres-data`
95+
96+
Kafka:
97+
- old: `sentry_kafka`
98+
- new: `kafka_kafka-data`
99+
100+
Redis:
101+
- old: `sentry_redis`
102+
- new: `redis_redis-data`
103+
104+
```shell
105+
# Create a new postgres volume
106+
docker volume create sentry_postgres-data
107+
108+
# Copy over the data from the old volume
109+
docker run --rm \
110+
-v sentry_postgres:/old_volume \
111+
-v sentry_postgres-data:/new_volume \
112+
ubuntu \
113+
bash -c "cd /old_volume && cp -a . /new_volume"
114+
115+
# Validate that data has been copied over
116+
docker run --rm -v sentry_postgres-data:/data ubuntu ls -l /data
117+
```

0 commit comments

Comments
 (0)