need help to recover a backup postgresql db when doing migrations

i have deleted a backup postgresql db when doing migrations ,,can you help me recover it
24 Replies
Percy
Percy11mo ago
Project ID: 1946624d-4838-4412-83ee-ad1108c33fef
willymwaura
willymwauraOP11mo ago
1946624d-4838-4412-83ee-ad1108c33fef
Brody
Brody11mo ago
do you have a backup?
willymwaura
willymwauraOP11mo ago
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
Brody
Brody11mo ago
so the legacy database is fine?
willymwaura
willymwauraOP11mo ago
both are deleted
Brody
Brody11mo ago
and you have no backups anywhere else?
willymwaura
willymwauraOP11mo ago
i have another backup in s3 i now want to migrate the master db
Brody
Brody11mo ago
then you would need to deploy a new postgres database and restore your backup
willymwaura
willymwauraOP11mo ago
when one makes a migration ,,does the legacy and new db stay?
Brody
Brody11mo ago
yes, railway will not delete databases, that would have been something you did
willymwaura
willymwauraOP11mo ago
what happens when db is deleted by mistakes can it be recovered ?
Brody
Brody11mo ago
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
willymwaura
willymwauraOP11mo ago
now i have phobia migrating the master db HAHAHA
Brody
Brody11mo ago
haha just don't delete stuff
willymwaura
willymwauraOP11mo ago
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 ??
Brody
Brody11mo ago
yes why are you deleting volumes?
willymwaura
willymwauraOP11mo ago
the other dbs where not have volumes so i thought it would work just fine
Brody
Brody11mo ago
the other new databases will absolutely have volumes the legacy databases don't have volumes, but all new databases will
willymwaura
willymwauraOP11mo ago
i didnt know that Thank you so much
Brody
Brody11mo ago
no problem
willymwaura
willymwauraOP11mo ago
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?
Brody
Brody11mo ago
I don't work for railway lol
willymwaura
willymwauraOP11mo ago
HAHAHA
Want results from more Discord servers?
Add your server