Tutorial

How to Sync iPhone Photos to NAS: SMB, WebDAV & NFS Explained

Three standard network protocols let you transfer photos directly from your iPhone to network storage — no middleware server required. Here is how each one works and which to pick.

Syncing iPhone photos to a NAS sounds technical, but it is far simpler than most people assume. Apple has designed iOS to sandbox apps tightly, which makes direct file system access impossible. This is why most photo sync apps require a companion server running on your NAS. But that is not the only way. Three standard network protocols (SMB, WebDAV, and NFS) let you transfer photos directly from your iPhone to network storage without any middleware.

This guide explains how each protocol works, how to set it up, and which one you should choose for your home network.

Why Sync iPhone Photos to NAS in the First Place?

iCloud is convenient, but it comes with limitations. The free 5GB tier fills up almost immediately. The paid tiers ($0.99 for 50GB, $2.99 for 200GB, $9.99 for 2TB per month) add up quickly when you factor in family sharing and years of photos. More importantly, iCloud is not a backup: if you delete a photo from your iPhone, it disappears from iCloud too.

A NAS gives you a real backup that exists independently of your phone. You own the hardware, you control the storage capacity, and your photos survive phone upgrades, accidental deletions, and Apple account issues. Plus, NAS storage is shared across your entire household, so family members can back up their photos to the same device.

Understanding the Three Protocols

SMB: The Universal Default

SMB (Server Message Block) is the most widely adopted network file sharing protocol. Every consumer NAS from Synology, QNAP, Asustor, and TerraMaster supports SMB out of the box. Windows PCs use SMB natively, and macOS includes built-in SMB client support.

How it works: SMB uses a client-server model with username and password authentication. The client (your iPhone, via Pho) connects to the server (your NAS), authenticates, and gains access to a shared folder. File operations happen over TCP port 445.

Performance: SMB is efficient on local networks. With modern SMB3 implementations, you can expect 50-100 MB/s on gigabit Ethernet and 20-50 MB/s over WiFi 6. For photo sync (typical file sizes 2-10 MB for JPEG, 3-15 MB for HEIC), this is more than fast enough.

Setup on Synology NAS:

  1. Open DSM, go to Control Panel > File Services > SMB.
  2. Enable SMB service. Set the workgroup name if you are on a Windows network.
  3. Go to Shared Folder, create a new folder called "Photos" (or use an existing one).
  4. Click Edit on the folder, go to Permissions, and grant Read/Write access to your user account.
  5. In Pho on your iPhone, go to Settings > Storage > SMB. Enter your NAS IP, the share name ("Photos"), your username, and password. Tap Test Connection.

Setup on a Linux server (Samba):

  1. Install Samba: sudo apt install samba (Debian/Ubuntu) or sudo dnf install samba (Fedora).
  2. Create a shared directory: mkdir -p /srv/photos && chmod 755 /srv/photos.
  3. Edit /etc/samba/smb.conf and add a share definition.
  4. Create a Samba user: sudo smbpasswd -a yourusername.
  5. Restart Samba: sudo systemctl restart smbd.

WebDAV: Remote-Ready by Design

WebDAV (Web Distributed Authoring and Versioning) extends HTTP with file management capabilities. Because it runs over HTTP/HTTPS on port 80/443, it passes through firewalls and NAT gateways without needing special configuration.

How it works: WebDAV maps standard HTTP methods to file operations: GET for download, PUT for upload, DELETE for removal, PROPFIND for directory listing. This makes it easy to secure with TLS and route through reverse proxies.

Performance: WebDAV is slightly slower than SMB on local networks due to HTTP overhead, typically 10-30% slower for equivalent transfers. But over the internet, WebDAV with HTTPS often outperforms SMB with VPN due to lower protocol overhead.

Setup on Synology NAS:

  1. Open DSM, Control Panel > File Services > WebDAV.
  2. Enable WebDAV. Enable HTTPS if you plan to access it remotely.
  3. In Pho on your iPhone, go to Settings > Storage > WebDAV.
  4. Enter the URL: https://your-nas-ip:5006/Photos/ (Synology uses port 5006 for WebDAV).
  5. Enter your DSM username and password. Tap Test Connection.

Setup with Docker (Apache WebDAV):

  1. Create a docker-compose.yml with the httpd image and WebDAV module enabled.
  2. Map a volume to your photo storage directory.
  3. Set up Basic Auth with htpasswd for user authentication.
  4. Run docker-compose up -d and connect Pho to http://your-server-ip:8080/photos/.

NFS: Linux-Native Speed

NFS (Network File System) is the traditional Unix/Linux file sharing protocol. It is fast, simple, and deeply integrated into the Linux kernel. It is less common on consumer NAS devices but is the go-to choice for Linux home servers.

How it works: NFS exports a directory tree from the server. Clients mount the export and access files as if they were local. Authentication is typically based on client IP address and UID/GID matching, rather than username and password.

Performance: NFS is consistently the fastest protocol for raw sequential reads and writes on local networks. Expect 80-110 MB/s on gigabit Ethernet. For photo backup workloads, the difference from SMB is noticeable when transferring RAW files or 4K videos.

Setup on a Linux server:

  1. Install NFS server: sudo apt install nfs-kernel-server.
  2. Create the export directory: mkdir -p /srv/nfs/photos && chown nobody:nogroup /srv/nfs/photos.
  3. Edit /etc/exports and add: /srv/nfs/photos 192.168.1.0/24(rw,sync,no_subtree_check,all_squash,anonuid=65534,anongid=65534).
  4. Apply exports: sudo exportfs -ra.
  5. In Pho, go to Settings > Storage > NFS. Enter the server IP and export path: /srv/nfs/photos.

Protocol Comparison: Which One Should You Use?

Feature SMB WebDAV NFS
Local network speed Fast (50-100 MB/s) Moderate (40-80 MB/s) Fastest (80-110 MB/s)
Remote access VPN required Native (HTTPS) VPN required
Authentication Username/password Username/password IP-based
NAS support Universal Common Common
Ease of setup Easy Medium Medium
Best for Most home users Remote backup Linux power users

Recommendations

Recommendation for most users: SMB. It works on every NAS, setup takes minutes, and performance is excellent on local WiFi. If you want to back up when you are away from home, add WebDAV as a second option, or use a VPN to access your SMB share remotely.

Recommendation for remote-first users: WebDAV. If you travel frequently and want your photos to back up from anywhere without a VPN, WebDAV over HTTPS is the right choice. Set up a reverse proxy with Let's Encrypt for automatic TLS certificates.

Recommendation for Linux enthusiasts: NFS. If your home server runs Linux and you want maximum throughput, NFS delivers the best raw performance.

Common iPhone Sync Issues (and Fixes)

WiFi disconnects during sync

Keep your phone awake for the first sync

Keep your iPhone plugged in and the screen on during the initial bulk upload. iOS may suspend WiFi when the screen locks, interrupting large transfers. Incremental syncs afterwards are small and resilient.

iOS aggressively manages power and may disconnect from WiFi when the screen locks. This interrupts large sync operations. Fix: keep your iPhone plugged in and the screen on during the initial sync. Once the bulk upload is complete, subsequent incremental syncs are small and less affected. Pho handles this gracefully with automatic retry logic, but the initial upload of a large library works best with the phone awake.

HEIC format compatibility

By default, iPhones capture photos in HEIC format, which is efficient but not universally supported. Pho preserves the original HEIC files, so no conversion quality loss occurs. When you view photos in the Pho gallery, HEIC images are decoded on-device and displayed normally. If you need universal JPEG compatibility, iOS can be configured to transfer photos as JPEG via Settings > Photos > Transfer to Mac or PC > Automatic.

Duplicate photos after iOS update

iOS sometimes re-indexes the photo library after a major update, causing sync tools to see photos as new. Pho uses file hash comparison to detect duplicates, so re-syncing the same photo does not create a duplicate on your NAS. If you see duplicate thumbnails, a full rescan from the settings menu will clean them up.

Setting Up Automatic Background Sync

The real magic of iPhone-to-NAS photo sync is automation. You should not have to remember to open an app and tap sync. With Pho's background sync configured, new photos transfer to your NAS automatically when you are on WiFi.

  1. Open Pho and go to Settings > Background Sync.
  2. Enable "Auto sync on WiFi."
  3. Choose your sync interval. Daily is a good default. More frequent syncs use slightly more battery.
  4. Optionally, enable "Sync only when charging" to further reduce battery impact.

On iOS, background tasks are managed by the system. iOS schedules a processing task that wakes Pho periodically. While you cannot force iOS to run background tasks on an exact schedule, in practice, photos typically sync within a few hours of being taken.

Ready to free your iPhone photos from the cloud? Download Pho and get your first sync running in under 10 minutes. Connect to SMB, WebDAV, or NFS, choose your sync preferences, and let it run.

fregie

Creator of Pho

Ready to own your photos?

Download Pho free and back up your iPhone photos to your own storage in minutes.

Download on the App Store