Secure Copy files from Railway service to local machine

andresjbotello
HOBBY

2 months ago

Hi everyone,

I would like to know if there is a possibility to do something like `railway scp <origin> <destination>` to, for example, copy a dump of my database or any file that is currently stored in a running service in Railway to my local machine. As far as I've seen there aren't currently any solutions related to that, so I also wonder... if this is not in the Roadmap, perhaps it should since I believe it is a really helpful functionality.

Solved

1 Replies

2 months ago

Hello,

We don't support scp as that requires the actual ssh protocol, and we use our own protocol for the shell.

You would need to build something into your code to support this, perhaps running an actual ssh demon alongside your application -

https://github.com/brody192/ubuntu/blob/main/Dockerfile.ssh

https://github.com/brody192/ubuntu/blob/main/docker-entrypoint-ssh.sh

Then you can actually use SCP with the TCP Proxy.

Please let me know if you have any questions!

Best,
Brody


Status changed to Awaiting User Response railway[bot] 2 months ago


Status changed to Solved andresjbotello 2 months ago