Migrate a server from Railway
harbingerofska
PROOP

2 months ago

Hi! I currently host a Minecraft server for friends through Railway, however the pricing really doesn't seem conducive to maintaining on Railway. how would I go about packaging my server to migrate to another platform.

$10 Bounty

7 Replies

Railway
BOT

2 months ago

Your Minecraft server data lives on a volume, and you can access it by running railway ssh via the CLI after linking to your project and service. From within the SSH session, you can use tools like curl or wget to upload your world data to an external location (e.g., a file hosting service or cloud storage), since SCP/SFTP is not supported. You can also export your environment variables from the Variables tab using the Raw Editor in the dashboard.


Status changed to Awaiting User Response Railway 2 months ago


Railway

Your Minecraft server data lives on a volume, and you can access it by running `railway ssh` via the [CLI](https://docs.railway.com/cli) after linking to your project and service. From within the SSH session, you can use tools like `curl` or `wget` to upload your world data to an external location (e.g., a file hosting service or cloud storage), since SCP/SFTP is not supported. You can also export your environment variables from the Variables tab using the Raw Editor in the dashboard.

harbingerofska
PROOP

2 months ago

So I should be able to export what I need via CLI?


Status changed to Awaiting Railway Response Railway 2 months ago


Railway
BOT

2 months ago

Yes, after running railway link to connect to your project and service, you can use railway ssh to access your container and transfer your world data out using tools like curl or wget to upload to external storage. You can also copy your environment variables from the Raw Editor in the Variables tab of the dashboard.


Status changed to Awaiting User Response Railway 2 months ago


Railway

Yes, after running `railway link` to connect to your project and service, you can use `railway ssh` to access your container and transfer your world data out using tools like `curl` or `wget` to upload to external storage. You can also copy your environment variables from the Raw Editor in the [Variables tab](https://docs.railway.com/guides/variables) of the dashboard.

harbingerofska
PROOP

2 months ago

Sorry, I'm a bit of a newbie around this. Through railway ssh what specifically would I need to curl in order for this to work accordingly


Status changed to Awaiting Railway Response Railway 2 months ago


Railway
BOT

2 months ago

Once you're inside the container via railway ssh, you would navigate to your volume's mount path (check your volume settings in the dashboard for the exact path) and use a command like curl -T yourfile.tar.gz https://some-upload-endpoint to upload files to an external destination, such as a file transfer service or cloud storage bucket that accepts uploads. The specific upload command depends on which external service you choose to receive the files, as this is standard Linux file transfer rather than a Railway-specific workflow. Our SSH docs cover the basics of accessing your container.


Status changed to Awaiting User Response Railway 2 months ago


Railway

Once you're inside the container via `railway ssh`, you would navigate to your volume's mount path (check your volume settings in the dashboard for the exact path) and use a command like `curl -T yourfile.tar.gz https://some-upload-endpoint` to upload files to an external destination, such as a file transfer service or cloud storage bucket that accepts uploads. The specific upload command depends on which external service you choose to receive the files, as this is standard Linux file transfer rather than a Railway-specific workflow. Our [SSH docs](https://docs.railway.com/cli/ssh) cover the basics of accessing your container.

harbingerofska
PROOP

2 months ago

Sorry, but do you have a recommendation for a file transfer service that would best work for this


Status changed to Awaiting Railway Response Railway about 2 months ago


harbingerofska
PROOP

2 months ago

To clarify I have the file for /world compressed in Railway CLI as world.tar.gz however whenever I curl to any file transfer service or cloud storage bucket or try to clone the file to my local directory I get a failure


Status changed to Open Railway about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...