2 years ago
I was trying to sync the environment variable to Doppler service.
While it didn't imported all the environment variables to Doppler, and instead it messed up some variables in railway.
Luckly, it was just a database Docker image, and the data is still safe.
it was the production database 🙈
How can I duplicate the volume data, so that I can create a new service and attach the duplicated volume to the new service.
12 Replies
2 years ago
8fc2ad89-714b-4cb3-9778-cb64d1373409
2 years ago
I'm a bit lost, what service was this volume attached to?
2 years ago
Sorry for not being clear in the post description
It was mysql db (docker image)
https://hub.docker.com/_/mysql
2 years ago
do you know the username and password that was used for it?
2 years ago
username/password of the database?
2 years ago
yes
2 years ago
yes, I know the credentials
2 years ago
is the volume currently mounted to a service?
2 years ago
yes, it's currently attached/mounted to the mysql docker service (with messsed up env)
2 years ago
so use mysqldump
2 years ago
ah! gotcha
2 years ago
then the mysql cli would be used to restore to the new database