a month ago
Hello Railway Support,
I need help safely backing up my production data for my service, Bot-mwen, before activating a new Railway volume.
My Node.js Discord bot dashboard stores important ticket information, including servers.json and the transcripts/ directory.
I created a new volume with the mount path /app/dashboard/data, but I have not deployed the pending changes yet.
I am concerned that deploying the new volume could make my existing production files inaccessible or cause data loss.
Could you please help me determine whether these files still exist in the running container and explain how to safely export or back them up before activating the volume?
I want to preserve all existing ticket configurations and transcripts.
Thank you for your assistance.
1 Reply
a month ago
Bot-mwen is currently running with no volume attached, so servers.json and transcripts/ only exist on the running container's own disk. That disk does not survive a redeploy, and the volume you created starts out empty, so applying the staged change would not bring those files along.
Copy them off the live container before you apply anything. The service's Console tab opens a shell in the browser with a Files panel that can download files to your machine, or you can use scp -r against ssh.railway.com with an SSH key registered on your account (added with railway ssh keys add), using the service's domain as the username, to pull the whole data directory at once. Running railway ssh and listing the directory will show you exactly what is there right now.
Once you have a local copy, apply the volume change, then upload the files into /app/dashboard/data on the new deployment using the same Files panel or scp, so they live on the volume from then on.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago