You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/development-infrastructure/devservices.mdx
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,3 +76,42 @@ Common modes:
76
76
```shell
77
77
devservices up --mode symbolicator
78
78
```
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
0 commit comments