Skip to content

Instantly share code, notes, and snippets.

@cocoabox
Last active April 30, 2026 03:52
Show Gist options
  • Select an option

  • Save cocoabox/fc96ad1bf0de1a26c4245828777287e5 to your computer and use it in GitHub Desktop.

Select an option

Save cocoabox/fc96ad1bf0de1a26c4245828777287e5 to your computer and use it in GitHub Desktop.
MacOS Photos から Immichに引っ越す時の手順
osxphotos export    "/Volumes/backups/OUTPUT_FOLER"  \
   --update   --update-errors   --sidecar XMP   --touch-file   --directory "{folder_album}"   \
   --download-missing   --export-aae  --filename 'IMG_{edited_version?E,}{id:04d}' \
   --edited-suffix ''   --overwrite   --verbose 

巨大EXPORT(>2GB)を読み取る時は、Immich-go は推奨(インストール必要ない、最新Relからバイナリをダウンロードし展開してそのまま使用可)

Immich-CLIは使うべからず。理由はここを展開
  • アップロード作業する前は全内容をHashする。10G以上だと相当時間かかる
  • 途中Timeout終了してしまう
  • 時間かかりすぎ、再開不可能
/opt/apps/immich-docker/immich-go/immich-go  upload from-folder \
--recursive \
--folder-as-album=FOLDER \
--api-key=xxxxxx
--server=http://xxxxx:2283  \
--concurrent-tasks=20 \
--manage-heic-jpeg=StackCoverJPG \
--manage-raw-jpeg=StackCoverJPG  \
--on-errors=continue \
--client-timeout=99m \
"/Volumes/backups/OUTPUT_FOLER"  \
"ANOTHER FOLDER" \
  :
  :

--client-timeout=99m は大きい動画のUPに必要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment