2 years ago
hey , i have found this great template
https://github.com/railwayapp-templates/postgres-s3-backups
it looks like it does the job , but i would like to know if there is any version of this template that uses railway built in corn job
so it will run the server based on some corn ( 7days or so )
13 Replies
2 years ago
that template actually does have support for railway's native cron, simply enable your desired cron expression in the service settings, then set a SINGLE_SHOT_MODE service variable to true this will cause the app to instantly start the backend when ran and then exit when it's done it's backup allowing you to use it with railways native cron!
2 years ago
let me know if it works for you!
hey @Brody
1 - for the region should i enter WEUR for : Western Europe (WEUR)
2 - for the endpoint should i enter the S3 API when using r2 ?

2 years ago
for the region you should use auto and for the endpoint, you use the endpoint that cloudflare gave you
2 years ago
no, it handles that itself
2 years ago
it uses pg_isready instead
2 years ago
awesome!
2 years ago
I'll update those variable descriptions to include info on what to use if using cloudflare r2
