ImmichI
Immich9mo ago
37 replies
boku

Assets lost during migration

Dear all

I am finally migrating to immich and I am facing an issue with missing assets.

The first attempts were more successful in terms of completeness, but I was facing issues with the timeline as copying photos (from Synology Photos folder) changed timestamps. Now, several thousand photos seem to disappear - this situation seems to be reproducable as I have already retried it.

What I did:
- Mount USB drive on NAS1
- Create a tar archive with tar -cf <Synology Photos folder> to an USP drive
- Unarchive with tar -xf
- Delete all @eaDir folders with thumbnails recursively
- Mount USB drive to NAS2
- Upload photos with the following command:

docker run -it -v "$(pwd)":/import:ro \
-e IMMICH_INSTANCE_URL=http://<host>:2283/api \
-e IMMICH_API_KEY=<key> \
ghcr.io/immich-app/immich-cli:latest upload . --recursive

Crawling for assets...
Hashing files | | 100% | ETA: 0s | 11929/11929 assets
Checking for duplicates | | 100% | ETA: 0s | 11929/11929 assets
Found 11929 new files and 0 duplicates
Uploading assets | | 99% | ETA: 1s | 31.2 GB/31.2 GB
Successfully uploaded 11910 new assets (31.2 GB)
Skipped 19 duplicate assets (6.6 MB)

Why does the progress bar stay at 99%?


In the Server statistics overview I now see:
Photos: 8.725 (16 GiB)
Videos: 676 (13 GiB)
Usage: 29 GiB

I expected to see 11910 assets in total, but apparently there are only 9401.

Is this a known error or am I doing something wrong? My wife has even 4 times number of photos.

Thank you
Patric
Was this page helpful?