Bulk upload from windows pc to Immich on other pc
Hello all,
I want to upload masses of photos to my new server, it is up and running, I have uploaded from various phones using the immich app, I can access the server ect..
I want to upload thousands of photos by selecting the folder rather than each individual photo, I understand I need to do this via CLI?
on my windows system I have opened Windows Power Shell in the folder holding the "Photos" directory and typed the following " immich upload --<My API Key> --url http://192.168.1.2:8181/api --recursive Photos/ ", what I recieve back is the following,
"immich : The term 'immich' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ immich upload --<My API Key> --url http:// ...
+ ~~
+ CategoryInfo : ObjectNotFound: (immich:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"
I am truly stuck.. I have no idea what's going on or how to fix it, any one here able to offer assistance?
Thanks.
27 Replies
:wave: Hey @Frag-O-Byte,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Nothing showing on the containers log's as the windows pc hasn't even sent any commands to it,
Container status is on and working as it should,
Reverse proxy - shouldnt be an issue as im connecting via LAN,
Server is UnRaid 7.0.1 running Immich Docker v1.132.3,
Client is Windows 11 fresh install a few weeks ago (I hardly use it),
First off, take a look at immich-go, it's a community project ahead of immich cli in many ways
i read immich-go is for google photos only?
Second, the command only works if you download the binary and add it to path
It is not
will immich go need to be on the server?
not client side
No just the client
ok
ill have a look now thanks
will this still copy the photos to the server? or will it just view them remotely?
It's an upload tool so copy
To complete my explanation, the way we usually run it is from inside a docker container, you mount a folder to the container and run the command inside it
This makes a lot more sense if you're used to docker things, which is why I think immich go might be best here
Slight issue, I have downloaded Immich-go.exe from github, extracted it to the folder where the folder/photos are, then ran this code immich-go -server=http://192.168.1.2:8181/api -key=(MyKey) upload -create-albums -sofa as a test and it has the same error

Did you read the suggestion at the end of the error message?
yes, but i dont understand it, is it simply saying add \ at the start?
.\
Thank you that got the thing working, but now im having issues with the commands, it shows me the command then when i use it its giveing me "unknown shorthand flag"

I found the commands on the github page, there was no readme with the file 😦
ok, update, I have now typed ".\immich-go upload from-folder --server=http://192.168.1.2:8181/api --api-key=key=wTwP0mA1pxt5N8LRi4vo0BdEUrTjDO0NVZrEoAY /mnt/user/media/photos/" now its giving me issues with no ping, am i going to have to connect via external ip?
I have tried internal IP and external IP as well as domain name but its not getting a ping and stops
can you connect through your browser?
@Frag-O-Byte
sorry for the delay, yes i can
I can access it via lan, internet via url
Try without /api @Frag-O-Byte
says invalid API key now
You have key= twice
seen, thank you
error while calling the immich's ping API at this address: http://192.168.1.2:8181/api/api/server/ping:
PingServer, GET, http://192.168.1.2:8181/api/api/server/ping, 404 Not Found
Cannot GET /api/api/server/ping
i removed the /api to the following ".\immich-go upload from-folder --server=http://192.168.1.2:8181 --api-key=2KR5ucF519IeOpwGlng5ldsuA3hmn5y5HE4Z593G4 /mnt/user/media/photos/", now i get
"CreateFile /mnt/user/media/photos/: The system cannot find the path specified.
PS F:\Drive>"
I think its working!
i changed the path to \TOWER\media\photos.

I take it this is uploading the folders?
Thank you for your help, it has finished uploading 3258 files, but there is 47,000 in total, is this a bug or will i need to redo it?
You're probably missing a flag to recursively search through the subfolders
I have finally solved what I was doing wrong, I was uploading the file from the server to the server again, duplicating it...
after a while I realised the last path is where the photos you want to upload are... no where in the documentation or YouTube videos tell you this.
now how do I upload all my photos in date order rather than it just dumping them as todays date...