Is it ok to deploy a script which creates dump of PostgreSQL and saves in external server?
rzayevtamerlan
FREEOP

9 months ago

Hello to everyone!

I have a question regarding database backups in my project. Is it possible to deploy an additional JavaScript script alongside my other applications that, once every N days, creates a dump of the PostgreSQL database hosted inside my Railway project and then sends that dump to an external storage location?

The reason I would like to implement this is that the built-in dumps generated by Railway cannot be downloaded to another server. As I understand it, Railway stores these backups internally and does not provide an option to transfer them elsewhere. To ensure the safety and redundancy of my data, I would like to maintain backups both on Railway and on my own external storage.

Could you please let me know if this approach is supported and legal on Railway? If not, are there any alternative methods or best practices you recommend for exporting or automating the transfer of database dumps to an external destination?

Thank you for your help!

Solved

3 Replies

brody
EMPLOYEE

9 months ago

Hello,

Absolutely nothing wrong with that at all, in fact we have our own backup template to do just that -

https://railway.com/template/I4zGrH

This template will backup the database to S3 or any S3 compatible service such as Cloudflare R2.

Best,
Brody


Status changed to Awaiting User Response Railway 9 months ago


brody

Hello,Absolutely nothing wrong with that at all, in fact we have our own backup template to do just that -https://railway.com/template/I4zGrHThis template will backup the database to S3 or any S3 compatible service such as Cloudflare R2.Best,Brody

rzayevtamerlan
FREEOP

9 months ago

Thank you sir for help. I will try to deploy this template then.


Status changed to Awaiting Railway Response Railway 9 months ago


brody
EMPLOYEE

9 months ago

Sounds good!


Status changed to Awaiting User Response Railway 9 months ago


Status changed to Solved brody 9 months ago


Loading...