brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: immich upload can turn your folders into Immich albums

Immich
~/tips/tip-immich-upload-album-folders

immich upload --album --recursive ~/Pictures/archive

Keeps your folder structure as albums when importing an old photo collection.

Years of neatly named folders are worth keeping when you move to Immich. A plain upload puts everything on the timeline and the names are gone from view.

Add --album to the CLI upload:

immich login https://photos.example.com/api YOUR_API_KEY
immich upload --album --recursive ~/Pictures/archive

Each photo goes into an album named after the folder that holds it. --recursive is needed to descend into subfolders at all. Create the API key in your account settings in the web interface, and install the CLI with npm as the docs describe.

Run a rehearsal first:

immich upload --dry-run --album --recursive ~/Pictures/archive

If you’d rather have one album for the lot, for example a shoebox of scans, use a name of your own instead:

immich upload --album-name "Scanned prints" --recursive ~/Pictures/scans

The album takes its name from the folder itself, not the whole path, so ten folders all called camera or 2019 will not give you ten distinct albums. I’d rename ambiguous folders before importing, which is much easier than untangling albums afterwards.

The upload leaves your originals where they are. The CLI also has delete options that remove local files, so I’d stay away from those until you’ve checked the library and made a separate backup. The key stored by login lives in your config directory; log out or delete it on a shared machine.

Further reading: Immich command line interface

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

More Immich tips immich upload --skip-hash --recursive directory/ docker exec -it immich_server immich-admin enable-password-login docker exec -it immich_server immich-admin enable-maintenance-mode immich upload --ignore "**/Raw/**" --recursive ~/Pictures/2025 immich login http://192.168.1.x:2283/api <api-key> All Immich tips (7) All topics

Link