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