Created
July 4, 2025 09:28
-
-
Save rikmeijer/f232d89e50c757e7f61a767c7c425b13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bash/sh | |
| for dir in ./*/ | |
| do | |
| dir=${dir%*/} | |
| album="${dir##*/}" | |
| docker run -it -d --name "upload_${album//[^0-9a-zA-Z]/_}" -v "$(pwd)":/import:ro -e IMMICH_INSTANCE_URL=https://<IMMICH_DOMAIN>/api -e IMMICH_API_KEY=API_KEY_HERE ghcr.io/immich-app/immich-cli:latest upload --album --concurrency 5 --recursive ${album} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment