#Migrate to unRAID

1 messages · Page 1 of 1 (latest)

boreal quest
#

Hi, I built new server and install TrueNAS scale. I install Immich there but I'm completely confused and don't know how to migrate my settings. It's possible?

full gazelle
#

Did you use truecharts to install immich? If so you'll probably have to ask the folks there, we don't know much about how they set that up

boreal quest
boreal quest
#

Hello @full gazelle I finly decide to install unraid. Do You know how to install and migrate my settings there?

full gazelle
boreal quest
#

Can You tell me how can I check where my library is stored in immich because I'm confused now. I copy my drive data to new server and have some immich folders but there is date 2022 year.

full gazelle
#

Did you copy both the library folder and the postgres data?

#

Your question isn't entirely clear to me

boreal quest
#

OK, I see upload location in .env. I saw empty folder immich-backup and I was afraid it not move and one of my drives was formated already.

boreal quest
#

Migrate to unRAID

boreal quest
# full gazelle Did you copy both the library folder and the postgres data?

Hi, would You be so kind and help me with installation on unraid. First I get that info and don't know what to do?

This application has additional requirements

PostgreSQL 14, Redis
This container requires an external application to be run separately.
You can also use a docker mods to start redis within the container,
Set DOCKER_MODS=imagegenius/mods:universal-redis, and REDIS_HOSTNAME to localhost.
full gazelle
boreal quest
boreal quest
full gazelle
#

It's best to compare with the one from the guide to make sure you're up to date etc

boreal quest
#

OK, I will try.

boreal quest
#

I do that but have many error:

ERROR:  constraint "FK_5e3753aadd956xxxxxxxxxxxxxx" for relation "smart_info" already exists
ERROR:  constraint "FK_66fexxxxxxxxxxxxxxxxxxxxxxx" for relation "shared_links" already exists
ERROR:  constraint "FK_6c2e26xxxxxxxxxxxxxxxxxxxxx" for relation "api_keys" already exists
ERROR:  constraint "FK_f8e8a9e893cbxxxxxxxxxxxxxxx" for relation "tag_asset" already exists
SET
 set_config 
------------
(1 row)
SET
DROP DATABASE
CREATE DATABASE
ALTER DATABASE
You are now connected to database "postgres" as user "postgres".
SET
 set_config 
------------
(1 row)
SET
COMMENT

It's OK?

#

@full gazelle It looks OK now for settings and users but there's no photos in my library. I set upload location in .env where I have my Photos folder.

full gazelle
#

Your database restore probably failed. Make sure to do that on an empty database (so before starting up Immich)

boreal quest
full gazelle
#

You're restoring from a backup right? So you just need to:

  1. Set up the docker-compose and .env etc as usual, pointing UPLOAD_LOCATION wherever you like
  2. Make sure the files from your backup are copied back into your new UPLOAD_LOCATION
  3. Restore the postgres database from the backup
  4. Start the stack
boreal quest
#

meybe I need just bulk upload now:

docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api

?

#

It's better to move that immich folders to other location first?

full gazelle
#

If you restored from backup successfully you shouldn't need to do an upload