How can I Duplicate the volume data
mittalyashu
PROOP

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.

0 Replies

mittalyashu
PROOP

2 years ago

8fc2ad89-714b-4cb3-9778-cb64d1373409


brody
EMPLOYEE

2 years ago

I'm a bit lost, what service was this volume attached to?


mittalyashu
PROOP

2 years ago

Sorry for not being clear in the post description

It was mysql db (docker image)
https://hub.docker.com/_/mysql


brody
EMPLOYEE

2 years ago

do you know the username and password that was used for it?


mittalyashu
PROOP

2 years ago

username/password of the database?


brody
EMPLOYEE

2 years ago

yes


mittalyashu
PROOP

2 years ago

yes, I know the credentials


brody
EMPLOYEE

2 years ago

is the volume currently mounted to a service?


mittalyashu
PROOP

2 years ago

yes, it's currently attached/mounted to the mysql docker service (with messsed up env)


brody
EMPLOYEE

2 years ago

so use mysqldump


mittalyashu
PROOP

2 years ago

ah! gotcha


brody
EMPLOYEE

2 years ago

then the mysql cli would be used to restore to the new database


Loading...