photo-management

Nextcloud vs Immich for Photos: Storage and Pairing

Compare Nextcloud and Immich for self-hosted photos. See where phone uploads go and how to share one archive with a read-only Immich library.

Illustrated title card for the guide: Nextcloud vs Immich for Photos: Storage and Pairing

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 mattersNextcloudImmich
Getting photos off your phoneThe Android and iOS apps can automatically upload photos. Nextcloud PhotosPick which phone albums to back up. An optional setting mirrors those albums on the server. Immich mobile backup
Finding and organizing photosPhotos has a timeline, favorites, tags and albums. Recognize is an optional add-on for face and object recognition. Nextcloud PhotosSearch 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 folderMount a local directory to access it in Files. Sharing on that mount depends on its settings. Nextcloud local storage · Nextcloud external storageAn 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

  1. 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
  2. In Add storage, choose Local. Enter Photo Archive in Folder name and /mnt/photos2 in 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
  3. 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
  1. 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
  2. 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
  3. 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 saveWhat to include
Shared photo archiveBack 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
NextcloudSave the database, configuration, data and theme directories, plus the custom apps folder if you use one. Nextcloud backup guide
ImmichSave 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

Sources

  1. Nextcloud Photos README github.com
  2. Nextcloud 35 User Manual: Desktop and mobile synchronization docs.nextcloud.com
  3. Nextcloud 35 User Manual: Uploading and creating files docs.nextcloud.com
  4. Nextcloud 35 User Manual: Using external storage docs.nextcloud.com
  5. Nextcloud 35 Administration Manual: External Storage docs.nextcloud.com
  6. Nextcloud 35 Administration Manual: Local storage docs.nextcloud.com
  7. Nextcloud 35 Administration Manual: Backup docs.nextcloud.com
  8. Immich: Mobile Backup docs.immich.app
  9. Immich: Searching docs.immich.app
  10. Immich: External Library setup guide docs.immich.app
  11. Immich: External Libraries docs.immich.app
  12. Immich: FAQ docs.immich.app
  13. Immich: Backup and Restore docs.immich.app
  14. Immich: Asset Types and Storage Locations docs.immich.app
  15. Immich: Docker Compose docs.immich.app

Related