docker-immich icon indicating copy to clipboard operation
docker-immich copied to clipboard

Backing up using this app/template

Open DrSpaldo opened this issue 1 year ago • 2 comments

Immich uses the following backup method:

https://immich.app/docs/administration/backup-and-restore

I was wondering how you would use this method & execute these commands if we have installed this version of Immich from the Unraid app store?

DrSpaldo avatar Nov 30 '23 07:11 DrSpaldo

Hello, I think you just need to rename immich_postgres to postgres. For the content saved in your filesystem, the folders mentioned in the guide can be found in the folder you mounted to /photos

martabal avatar Nov 30 '23 10:11 martabal

Thanks @martabal, you put me in the correct direction. For those that may come across this thread, this is the command that I used for mine....

The command needed to be executed via the Unraid main terminal / ssh connection:

docker exec -t postgresql14 pg_dumpall -c -U postgres | gzip > "/mnt/user/backup/immich/dump2.sql.gz"

Note; postgresql14 is the container name within Unraid for my postgres database.

DrSpaldo avatar Nov 30 '23 11:11 DrSpaldo