Choose Nextcloud if you want desktop file sync. Choose Immich if your priority is backing up selected phone albums. Run both to manage one shared archive in Nextcloud Files and browse it in Immich through a read-only external library. Nextcloud sync · Immich mobile backup · Nextcloud local storage · Immich external library setup
Which app fits your photo workflow?
| What matters | Nextcloud | Immich |
|---|---|---|
| Getting photos off your phone | The Android and iOS apps can automatically upload photos. Nextcloud Photos | Pick which phone albums to back up. An optional setting mirrors those albums on the server. Immich mobile backup |
| Finding and organizing photos | Photos has a timeline, favorites, tags and albums. Recognize is an optional add-on for face and object recognition. Nextcloud Photos | Search by image content or filter by faces, location or album. Photos from a scanned external library appear in the main timeline. Immich search · Immich external libraries |
| Working with an existing folder | Mount a local directory to access it in Files. Sharing on that mount depends on its settings. Nextcloud local storage · Nextcloud external storage | An external library scans the files where they already live. Photos uploaded directly to Immich go into its managed storage under UPLOAD_LOCATION. Immich external libraries · Immich storage locations |
Set up a shared photo folder
This example assumes Nextcloud can access the host filesystem and Immich is already running on that host in Docker Compose. Use an existing directory such as /mnt/photos2, outside Nextcloud’s data/ directory and Immich’s managed upload storage. Nextcloud’s HTTP server user needs read and write access to it. Nextcloud local storage · Immich external library setup · Immich storage guidance
Give Nextcloud access in Files
- As a Nextcloud administrator, enable External Storage Support under Apps. Open the profile menu, select Settings, then choose External Storage under Administration. Nextcloud external storage settings
- In Add storage, choose Local. Enter
Photo Archivein Folder name and/mnt/photos2in Configuration. Set Available for to the users or groups who should have access. An unrestricted admin mount is available to all users by default. Nextcloud local storage · Nextcloud external storage settings - Look for a green indicator on the mount. Open Photo Archive in Files with an account that has access. Click +, choose Upload file, and select a sample photo. Nextcloud external storage settings · Uploading in Nextcloud Files
Add the folder to Immich read-only
In Immich’s docker-compose.yml, add this entry under the existing volumes list for immich-server. Keep :ro so Immich cannot delete the originals or write XMP sidecar files in this folder. Immich external library setup · Immich FAQ
- /mnt/photos2:/mnt/photos2:ro
From the directory containing that Compose file, apply the change. Immich Docker Compose
docker compose up -d
- As an Immich administrator, open Administration in the web interface, select External Libraries, then click Create Library. Choose the user who should own the library. Immich external library setup
- Under Folder, click Add, enter the path inside the container,
/mnt/photos2, and click Add again. Open the three-dot menu and select Scan New Library Files. Immich external library setup - As the library owner, check the timeline for the sample photo. If the path is inaccessible, check that the import path matches the container mount and that Immich can read the folder. Immich external library behavior and troubleshooting
What changes after a scan?
- Add new originals to Photo Archive in Nextcloud Files, then scan the external library in Immich. Uploading a photo through Immich’s mobile backup puts it in Immich-managed storage. If the same file is also in the external library, it can appear twice in Immich’s timeline. Nextcloud external storage · Immich external libraries · Immich storage locations · Immich FAQ
- Deleting an original from the shared folder sends its Immich entry to the trash on rescan. If you trash a read-only item in Immich itself, it reappears in the timeline when the trash is emptied because the original is still on disk. Immich external libraries · Immich FAQ
- Immich keeps its album memberships in Immich. Adding an external file to an Immich album leaves the original file unchanged. Moving the file within the archive can lose that album membership on rescan because Immich treats the moved file as a new asset. Immich external libraries
What to back up
| What to save | What to include |
|---|---|
| Shared photo archive | Back up the shared directory itself. In this example, /mnt/photos2 is separate from Nextcloud’s data/ directory and Immich’s UPLOAD_LOCATION. Nextcloud local storage · Immich external libraries |
| Nextcloud | Save the database, configuration, data and theme directories, plus the custom apps folder if you use one. Nextcloud backup guide |
| Immich | Save a database backup and a copy of UPLOAD_LOCATION. When restoring to a fresh Immich installation, preserve the external library mount layout. Immich backup and restore guide |
Evidence and limits. The Nextcloud 35 manuals, official Photos README and Immich documentation, including the Compose example set to v3, were checked on November 26, 2026. The setup steps were not run for this article. Nextcloud 35 manual · Nextcloud Photos · Immich v3 Compose configuration