#need help to recover a backup postgresql db when doing migrations

32 messages · Page 1 of 1 (latest)

runic vault
#

i have deleted a backup postgresql db when doing migrations ,,can you help me recover it

torn peakBOT
#

Project ID: 1946624d-4838-4412-83ee-ad1108c33fef

coarse oliveBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

runic vault
#

1946624d-4838-4412-83ee-ad1108c33fef

vale mica
#

do you have a backup?

runic vault
#

the db i have deleted was the backup

#

now we dont have a backup

#

after migrations i saw two dbs the legacy and the new ,,and deleted the new db by mistake

vale mica
#

so the legacy database is fine?

runic vault
#

both are deleted

vale mica
#

and you have no backups anywhere else?

runic vault
#

i have another backup in s3

#

i now want to migrate the master db

vale mica
#

then you would need to deploy a new postgres database and restore your backup

runic vault
#

when one makes a migration ,,does the legacy and new db stay?

vale mica
#

yes, railway will not delete databases, that would have been something you did

runic vault
#

what happens when db is deleted by mistakes can it be recovered ?

vale mica
#

as long as you have a backup you are able to restore it

#

if you didn't have a backup, then there's no way to restore it

runic vault
#

now i have phobia migrating the master db HAHAHA

vale mica
#

haha just don't delete stuff

runic vault
#

i think i have noticed what i have done wrong ,,when one deletes the volume of the new db does it delete the whole data db ??

vale mica
#

yes

#

why are you deleting volumes?

runic vault
#

the other dbs where not have volumes so i thought it would work just fine

vale mica
#

the other new databases will absolutely have volumes

#

the legacy databases don't have volumes, but all new databases will

runic vault
#

i didnt know that

#

Thank you so much

vale mica
#

no problem

runic vault
#

bytha how can one work in your company (i use react ,python and go ) but i saw somehow that you use typescript can one work for you when he uses another language or tool?

vale mica
#

I don't work for railway lol