R
Railway5mo ago
IgnisDa

Database backup

I see an article https://blog.railway.app/p/automated-postgresql-backups which is ~2 yrs old. Is there a method now ?
Railway Blog
Automated PostgreSQL Backups
A step-by-step guide on automatic PostgreSQL backups on Railway using a one-click template.
18 Replies
Percy
Percy5mo ago
Project ID: N/A
IgnisDa
IgnisDaOP5mo ago
N/A
Brody
Brody5mo ago
the blog itself may be old, but the template it recommends is kept up to date and is still the recommended way to take postgres backups
IgnisDa
IgnisDaOP5mo ago
Is there a method now ?
I meant is there a newer method now? I saw some cron settings in the service itself.
Brody
Brody5mo ago
yes, you can use that template with railways cron scheduler to save yourself idle resources, read the templates overview for how to configure it tl;dr SINGLE_SHOT_MODE=true and then set your schedule in the service settings
IgnisDa
IgnisDaOP5mo ago
is there a link for this? Cant find it in the template
IgnisDa
IgnisDaOP5mo ago
is there any docs about the single shot thing? first time seeing it
Brody
Brody5mo ago
really isn't much to talk about, read the description for the variable well yeah haha, it was an arbitrary name I chose because I thought it described its own purpose well enough
IgnisDa
IgnisDaOP5mo ago
I see that the template does not have any provision for deleting old files
Brody
Brody5mo ago
that's something you would want to setup on the bucket for example I know cloudflare R2 has some kind of object lifetime you can setup
IgnisDa
IgnisDaOP5mo ago
ah yes, i see it on Minio too. thanks!
Brody
Brody5mo ago
oh do you plan to use minio? the template isn't currently working with MinIO, but there is an open PR I have that adds support, if you plan to use minio you would need to deploy the branch from my pr
IgnisDa
IgnisDaOP5mo ago
No issues. Any timeline on when it will be merged?
Brody
Brody5mo ago
technically I could merge it right now myself, and even though another user confirmed it worked with minio, I'd still want to get someone from the team to review anyway, I will ask the team tomorrow
IgnisDa
IgnisDaOP5mo ago
cool. ill check it out in the weekend then. thanks for your promptness!
Brody
Brody5mo ago
no problem! @IgnisDa merged
IgnisDa
IgnisDaOP5mo ago
Cool thanks
Want results from more Discord servers?
Add your server