Skip to main content

Module remote_sync

Module remote_sync 

Source
Expand description

Periodic remote-album reconciler.

Re-runs the per-folder album↔folder diff on a fixed interval so changes made directly in Immich (asset deletions, additions) propagate to local folders without requiring an app restart.

StructsΒ§

LocalDeletionRequest
Description of a local deletion event request targeting the remote album.

ConstantsΒ§

REMOTE_POLL_INTERVAL πŸ”’

FunctionsΒ§

build_local_deletion_request
Check if local deletion matches validation criteria for remote mirror sweep.
cleanup_deleted_sync_record πŸ”’
configured_album_id πŸ”’
deletion_album_name πŸ”’
deletion_record πŸ”’
deletion_watch_entry πŸ”’
find_album_asset_by_checksum πŸ”’
Iterate through album assets matching checksum to find matching Immich library record.
mirror_remote_delete πŸ”’
parent_folder_name πŸ”’
resolve_album_by_name πŸ”’
resolve_deletion_album_id πŸ”’
run_album_reconciler
Periodic task loop that performs remote-to-local and local-to-remote sync reconciliations.
trash_remote_after_local_delete
Mirrors local filesystem deletion by unlinking or trashing assets on Immich.
trash_remote_asset πŸ”’
unlink_from_album πŸ”’