Issue with Restore on ubuntu
I was running immich on windows docker desktop, and I've just setup an Ubuntu machine.
I ran the backup command as listed in the docs, and then I transferred the dump.sql.gz file to the ubuntu machine.
When I try to restore the postgres server I get this error below:
I'm checking the file type and it says that it's data
Please can anyone offer some advice on what I should do?
4 Replies
What command did you use to generate the backup?
You can also skip the whole gzip part if that is complicated going between windows/linux
Is that container
2c71b...
on windows or Linux? That's not the actual content is it?I used
docker exec -t immich_postgres pg_dumpall -c -U postgres | gzip > "/path/to/backup/dump.sql.gz"
to generate it on windows
so like you said I've tried skipping the gzip part
I've now used 7zip to compress it into gzip format, and I've transferred to my ubuntu machine
but on linux I'm getting the Error response from daemon: Container 2c71b62bac5e9dbc98487b38eda69a46c9426e7151e208170822d793a1a05247 is not running
error still
when i ran docker start immich_postgres
I got this error:
not sure what is causing the network immich-app_default
not found to happen
The restore command doesn't have to go through gunzip either btw. i think you can just cat it into the container as well. But it looks like you just need to get the container up and running first.
Can you post your compose file?
Instead of docker start postgres can you try docker compose up database?
Ok docker-compose up database did the trick!
Looks like everything else went ok. Thanks so much for your help