ImmichI
Immich11mo ago
Noryb

Server migration question

Hi, I am currently trying to move Immich from a dedicated server directly to my NAS. Running everything in Docker.

I have backups of the whole library folder (UPLOAD_LOCATION) and postgres folder (DB_DATA_LOCATION) including backups (those automatic db dumps).

First question:
When stopping all containers and simply copying (rsync) all files from A to B and basically rebuilding the folder structure, the server should be able to start again without needing to restore the DB dump right? Because postgres doesn't change anything on the files when turned off and it's a 1:1 copy. Or would it be better to only migrate the library (UPLOAD_LOCATION) folder and restore the DB from a dump?

Second question:
I have a docker volume for model-cache that is being mounted by immich-machine-learning:
volumes:
      - model-cache:/cache


Do I need to migrate those files too? Or is it safe to ignore those files, not transfer them to the new machine and let docker recreate this volume on the new host since it's only cache (?)
Was this page helpful?