Skip to main content

📸 Immich Migration Tool

uv PyPI Python Version Tests Coverage License Conventional Commits

Migrate your photo library between Immich servers with confidence.


✨ Features

  • 🎯 Interactive Album Selection: TUI for choosing albums to migrate
  • 📦 Batch Processing: Downloads and uploads in configurable batches
  • 📊 Progress Tracking: Real-time progress bars for downloads and uploads
  • 💾 State Persistence: Resume interrupted migrations seamlessly (state saved to ~/.immich-migrator/state.json)
  • ✅ Checksum Verification: SHA1 verification for data integrity with configurable retry attempts
  • 🔄 Error Handling: Graceful recovery from network failures with retry logic
  • 📷 Unalbummed Assets: Migrate photos not organized in albums (presented as virtual album in selection)
  • 📝 EXIF Preservation: Maintains all photo metadata; original capture dates are injected into downloaded files before upload
  • 📸 Live Photo Support: Automatically detects and links iPhone Live Photos (image + video pairs)
  • 🗂️ Failed Assets Recovery: Assets that fail verification are saved to ./immich_failed_assets (configurable) for manual review

📦 Installation

Install with uv (persistent)

uv tool install immich-migrator

Traditional pip install

pip install immich-migrator

From Source

git clone https://github.com/kallegrens/immich-migrator.git
cd immich-migrator
uv sync

🚀 Quick Start

Prerequisites

Before you begin, ensure you have:

  • Python: 3.11 or higher ✅

  • Disk Space: At least 5GB free for temporary storage of downloaded batches 💾

  • ExifTool: For EXIF metadata handling 📝

    # Ubuntu/Debian
    sudo apt-get install libimage-exiftool-perl
    
    # macOS
    brew install exiftool
    

1. Prepare a unified credentials file

The tool expects a single credentials file containing both old and new server details. By default, it looks for ~/.immich.env.

Create ~/.immich.env (or copy from .immich.env.example):

# ~/.immich.env
# OLD server
OLD_IMMICH_SERVER_URL=https://old.immich.example.com
OLD_IMMICH_API_KEY=your-old-server-api-key-here

# NEW server
NEW_IMMICH_SERVER_URL=https://new.immich.example.com
NEW_IMMICH_API_KEY=your-new-server-api-key-here

2. Run migration

Run with the default credentials file (~/.immich.env):

uv run immich-migrator migrate

Or specify a custom credentials path:

uv run immich-migrator migrate -c /path/to/your/credentials.env

What happens next? 🎬

  1. 🔍 Connects to your old Immich server
  2. 📚 Discovers all albums (including unalbummed assets)
  3. 🎯 Displays an interactive menu for album selection
  4. ⬇️ Downloads selected albums with progress tracking
  5. ⬆️ Uploads to the new server with album organization intact
  6. 💾 Saves state for resume capability

🎯 Usage Examples

View Available Commands

immich-migrator --help
immich-migrator migrate --help

Basic Migration

immich-migrator migrate

Custom Batch Size

immich-migrator migrate --batch-size 30

Custom Configuration

immich-migrator migrate --config config.toml

Debug Mode

immich-migrator migrate --log-level DEBUG

Quiet Mode (Warnings/Errors Only)

immich-migrator migrate --quiet

Custom Failed Assets Directory

immich-migrator migrate --failed-output-dir /path/to/failed/assets

Adjust Verification Retries

immich-migrator migrate --verify-retries 5

⚙️ Configuration

Create a config.toml file for advanced configuration. All settings are optional and have sensible defaults.

Available Configuration Options

# Batch processing
batch_size = 20                      # Assets per batch (1-100, default: 20)

# Performance tuning
max_concurrent_downloads = 5         # Parallel downloads (1-20, default: 5)
max_concurrent_requests = 50         # Parallel API requests (1-200, default: 50)
download_timeout_seconds = 300       # Download timeout in seconds (default: 300)

# Storage locations
state_file = "~/.immich-migrator/state.json"  # Migration state persistence
temp_dir = "~/.immich-migrator/temp"          # Temporary download directory

# Logging
log_level = "INFO"                   # DEBUG | INFO | WARNING | ERROR (default: INFO)

Using Configuration File

immich-migrator migrate --config /path/to/config.toml

✅ Compatibility

  • Python: 3.11, 3.12, 3.13
  • Operating Systems: Linux, macOS, Windows (WSL recommended)
  • Immich: Tested with Immich v1.119 – v2.x.x servers

🔧 Troubleshooting

🔐 Authentication Errors

💾 Storage Errors

🌐 Network Errors

The tool automatically retries failed downloads with exponential backoff.


🛠️ Development

Setup

uv sync

Run Tests

uv run pytest

Linting

uv run ruff check .
uv run ruff format .

📖 Changelog

See CHANGELOG.md for release history and breaking changes.

Latest Release


🙌 Contributing

Contributions welcome! Please read CONTRIBUTING.md for:

  • 📋 Development workflow
  • ✅ Testing requirements
  • 🎨 Code style guidelines
  • 🔒 Security practices

📄 License

GNU Affero General Public License v3.0 — see LICENSE file for details.

This ensures that any modifications to this tool, especially if hosted as a service, remain open source.

Metadata

Release files for immich-migrator 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for immich-migrator 0.4.7
File Size Uploaded Provenance Actions
immich_migrator-0.4.7.tar.gz 6.6 MB Without provenance Details for immich_migrator-0.4.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for immich-migrator 0.4.7
File Interpreter ABI Platform Actions
immich_migrator-0.4.7-py3-none-any.whl Python 3 none any Details for immich_migrator-0.4.7-py3-none-any.whl

Total release size: 6.7 MB

Release files / immich_migrator-0.4.7.tar.gz

Download URL immich_migrator-0.4.7.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
7e2d2d05649346da685a0ab45b46d750e5e2c1ad3d8e45592ec71cb4475f4256
BLAKE2b-256 checksum
How to use checksums
5a95b637dd0f9c40a73007f886b8d3d17fe172af9f839f03e8b691e26e765015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / immich_migrator-0.4.7-py3-none-any.whl

Download URL immich_migrator-0.4.7-py3-none-any.whl
Size 58.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
252485379c5a6d16f78f019c926a192b90c0e174de4d2fa53521258d444dbcb3
BLAKE2b-256 checksum
How to use checksums
29a65b20d80059d55650e70370fcd25d78a578ac5ce4be5f8397bebd677f3a27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for immich-migrator 0.4.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page