Skip to content

Instantly share code, notes, and snippets.

@rikmeijer
Created July 4, 2025 09:28
Show Gist options
  • Select an option

  • Save rikmeijer/f232d89e50c757e7f61a767c7c425b13 to your computer and use it in GitHub Desktop.

Select an option

Save rikmeijer/f232d89e50c757e7f61a767c7c425b13 to your computer and use it in GitHub Desktop.
#!/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