2 years ago
i was given my db archives because my db was deleted due to migration. I am trying to restore the db data by running this command pgrestore -U -h -p -W -F t -d but I am getting error pgrestore: error: could not find header for file "toc.dat" in tar archive
0 Replies
2 years ago
when you where given your archive file, where you given a command to run to restore it?
2 years ago
please ask them for the correct command needed to restore the database
2 years ago
fair enough
2 years ago
I am missing something too, I don't know what command their automated process ran to create that dump, so I would only be guessing at the command needed to restore it
2 years ago
do you remember who you talked to?
2 years ago
I assume you where emailed the file?
2 years ago
okay, so the person who was responsible for creating the dumps is on DND right now so I'm not going to ask them, until they are off DND, keep trying to restore the dump file with different formatted commands. what file extension was your dump file provided with?
2 years ago
have you tried restore commands that are compatible with tarballs?
2 years ago
seems it's not
2 years ago
asked someone else on the team who was involved, this should be the command you need
psql $url_to_restore_to -f file.sqlthanks it seems to have done something, and i see some data created in db but during execution it threw me a banch of error like: psql:/railway.sql:1952: ERROR: relation "timescaledbcatalog.chunkidseq" does not exist
2 years ago
did you use timescale features of your legacy database?
2 years ago
is this not your app?
2 years ago
then you definitely didn't use it
2 years ago
so check to see if all your data is there
2 years ago
yep I know about strapi, it would not have used timescale features
looks like it is working, strapi running without problems on restored db. thank you for your help
2 years ago
awesome!