How can I Duplicate the volume data
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.
13 Replies
Project ID:
8fc2ad89-714b-4cb3-9778-cb64d1373409
8fc2ad89-714b-4cb3-9778-cb64d1373409
I'm a bit lost, what service was this volume attached to?
Sorry for not being clear in the post description
It was mysql db (docker image)
https://hub.docker.com/_/mysql
do you know the username and password that was used for it?
username/password of the database?
yes
yes, I know the credentials
is the volume currently mounted to a service?
yes, it's currently attached/mounted to the mysql docker service (with messsed up env)
Solution
so use
mysqldump
ah! gotcha
then the mysql cli would be used to restore to the new database