Dockerized iCloud client: make a local copy of your iCloud documents and photos, and keep it up to date
open sourceBSD-3-Clauseself-hostablefree
iCloud-docker (formerly iCloud-drive-docker) is a Docker container that periodically downloads your iCloud Drive and iCloud Photos, all of them or the folders and albums you choose, to local folders and keeps them up to date. It's configured with a YAML file and built on the iCloudPy Python library, with an optional web UI that can do the 2FA sign-in from a browser, re-authentication over Telegram, and alerts by email, Telegram, Discord, Pushover and webhooks when Apple's sign-in expires. Accounts with hardware security keys sign in through a small signer run on the machine that has the key. Mandar Patil maintains it.
Problems it solves
- keep a local copy of my iCloud Drive and my iCloud photos on my home server
- back up iCloud Drive documents and iCloud Photos with one container
- re-enter my Apple two-factor code from Telegram when my iCloud backup asks for it
- get a Discord or Pushover alert when my iCloud sync's sign-in has expired
- sync only some iCloud Drive folders and photo albums to my NAS
Features
- periodic download of iCloud Drive and iCloud Photos
- choose folders, albums and file types
- YAML config
- optional web UI with browser 2FA sign-in
- re-authentication over Telegram
- notifications by email, Telegram, Discord, Pushover and webhooks
- security key sign-in through a local signer
- monitoring pings at sync start, success and failure
- hard-link based photo de-duplication
Limitations
- Doesn't upload local files to iCloud: it only downloads from the server1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what iCloud-docker does.
- iCloud Photos Downloader (icloudpd) A command-line tool to download photos from iCloud
- iCloud Photos Sync One-way sync engine for the iCloud Photos Library into the native file system
- kei Fast, parallel backups for cloud-hosted photos and videos
