Skip to content
backup postgres s3
yanzaum
OP

3 years ago

how to correctly connect postgres backup to s3?

Closed

38 Replies

yanzaum
OP

3 years ago

Is this error after deploy due to the wrong database credential?

/run/postgresql:5432 - no response


3 years ago

I'd deploy this template and pair it with Cloudflare R2


3 years ago

make sure it's deployed into the project with the postgres database so that you can use the private database url


yanzaum
OP

3 years ago

ok, I'll switch to R2


yanzaum
OP

3 years ago

in the database env I set it to get it automatically

${{ DATABASE_URL }}


3 years ago

you'd need to use a namespace in that reference


yanzaum
OP

3 years ago

Does cloudflare r2 have no plan without adding credit card?


3 years ago

it requires you to add a credit card


yanzaum
OP

3 years ago

ok, where do I get the cloudflare credentials?


3 years ago

you have to generate them through cloudflare's website


yanzaum
OP

3 years ago

BACKUP_DATABASE_URL is ${{ Postgres.DATABASE_PRIVATE_URL }}?


3 years ago

assuming your database is in the same project and named Postgres that is correct


yanzaum
OP

3 years ago

the database is in the same project


yanzaum
OP

3 years ago

deploy logs

/run/postgresql:5432 - no response


3 years ago

click the eye icon on the backup URL variable, does it show correctly?


yanzaum
OP

3 years ago

yes


yanzaum
OP

3 years ago

private or public url?


yanzaum
OP

3 years ago

I will copy and paste


3 years ago

do not copy and paste please


yanzaum
OP

3 years ago

ok


yanzaum
OP

3 years ago


yanzaum
OP

3 years ago

it imported correctly


3 years ago

are you sure the backup url service variable on the CRON service shows correctly when you click it's eye icon


yanzaum
OP

3 years ago

yes


yanzaum
OP

3 years ago

If I send the project code within the railway, would it be better for you to follow it?


3 years ago

I don't work for Railway, I can't view your project


3 years ago

can you provide some context on this screenshot please?


yanzaum
OP

3 years ago

I got the env from the database and got the env from postgres backup and compared


yanzaum
OP

3 years ago

just to confirm if it was identical


3 years ago

screenshot of your deployment logs please


yanzaum
OP

3 years ago


yanzaum
OP

3 years ago


3 years ago

screenshot of the project please


yanzaum
OP

3 years ago


yanzaum
OP

3 years ago

It's all in the same project


3 years ago

hmmm so why are you getting that error, very strange, I will test this myself when I'm back at the computer and get back to you


yanzaum
OP

3 years ago

ok


3 years ago

i can no reproduce this issue unless i setup my BACKUP_DATABASE_URL variable incorrectly


Welcome!

Sign in to your Railway account to join the conversation.

Loading...