Add immich-sync ansible role for photo library sync #63

Merged
eblume merged 4 commits from feature/immich-sync into main 2026-01-26 12:38:39 -08:00
Showing only changes of commit e11e84cb20 - Show all commits

Fix osxphotos export options

osxphotos exports both original and edited versions by default.
Use --skip-edited and --skip-original-if-edited to control behavior
instead of non-existent --export-edited and --export-originals flags.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Erich Blume 2026-01-26 12:20:09 -08:00

View file

@ -55,7 +55,7 @@ log "Starting photo export from Photos Library to $EXPORT_DIR"
# --directory: export directory structure by date
# --update: only export new/changed photos (incremental)
# --exiftool: write metadata to EXIF tags
# --edited-suffix _edited: suffix for edited versions
# --edited-suffix: suffix for edited versions (default exports both original and edited)
# --download-missing: download from iCloud if needed
OSXPHOTOS_ARGS=(
export "$EXPORT_DIR"
@ -65,12 +65,12 @@ OSXPHOTOS_ARGS=(
{% endif %}
--exiftool
--download-missing
{% if immich_sync_export_edited %}
--export-edited
--edited-suffix "_edited"
{% if not immich_sync_export_edited %}
--skip-edited
{% endif %}
{% if immich_sync_export_originals %}
--export-originals
{% if not immich_sync_export_originals %}
--skip-original-if-edited
{% endif %}
)