© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
17 replies
rypudding

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:
$ gunzip < "/mnt/sda-samsung/dump.sql.gz" | docker exec -i immich_postgres psql -U postgres -d immich

$ gzip: stdin: not in gzip format
Error response from daemon: Container 2c71b62bac5e9dbc98487b38eda69a46c9426e7151e208170822d793a1a05247 is not running
$ gunzip < "/mnt/sda-samsung/dump.sql.gz" | docker exec -i immich_postgres psql -U postgres -d immich

$ gzip: stdin: not in gzip format
Error response from daemon: Container 2c71b62bac5e9dbc98487b38eda69a46c9426e7151e208170822d793a1a05247 is not running


I'm checking the file type and it says that it's data

$ file dump.sql.gz
dump.sql.gz: data
$ file dump.sql.gz
dump.sql.gz: data


Please can anyone offer some advice on what I should do?
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Post-Restore, issue with redated .XMP images BLANK
ImmichIImmich / help-desk-support
6mo ago
Backup and Restore scripts issue
ImmichIImmich / help-desk-support
9mo ago
Restore on new device
ImmichIImmich / help-desk-support
3y ago
Installing on Ubuntu server os
ImmichIImmich / help-desk-support
2mo ago