#Migrate to unRAID
1 messages · Page 1 of 1 (latest)
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
But there's no backup option in Immich so can You tell me wchich settings files to copy?
Database
Hello @full gazelle I finly decide to install unraid. Do You know how to install and migrate my settings there?
I would start with the backup guide for how to move stuff over https://immich.app/docs/administration/backup-and-restore
Database
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.
Did you copy both the library folder and the postgres data?
Your question isn't entirely clear to me
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.
Migrate to unRAID
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.
Have you tried the guide at https://immich.app/docs/install/unraid#docker-compose-method-official?
Immich can easily be installed and updated on Unraid via:
Thanks. I don't know that. I will try.
Can I copy/paste my all docker-compose.yml from old Debian server?
It's best to compare with the one from the guide to make sure you're up to date etc
OK, I will try.
Hi, I want to restore backup refering to documentation. How can I use that commands in unraid? Go to /boot with ssh and there will be docker-compose.yml?
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.
Your database restore probably failed. Make sure to do that on an empty database (so before starting up Immich)
So it's ok to restore from that /boot drive? I have everything in one Photos folder. My old pictures and upload location. Meybe that was problem. Do I need to choose empty folder for upload location in .env?
You're restoring from a backup right? So you just need to:
- Set up the docker-compose and .env etc as usual, pointing UPLOAD_LOCATION wherever you like
- Make sure the files from your backup are copied back into your new UPLOAD_LOCATION
- Restore the postgres database from the backup
- Start the stack
I have restore that way.
But I have everything in one /Photos folder. Including my whole photos library and folders that immich make:
/profiles,
/uploads,
/library,
/thumbs,
/encoded-video,
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?
If you restored from backup successfully you shouldn't need to do an upload