Syncing with Dropbox¶
Note: This is contributed content.
It's possible to use Dropbox to store your photos, while viewing and managing them through PhotoPrism.
- Set up a Dropbox account.
- Install the Dropbox desktop client.
- Sync your Dropbox to a local directory.
- If using Docker, configure your
volumes: - "~/Dropbox/Photos:/photoprism/originals"
- Follow the PhotoPrism getting started guide as normal.
Auto-upload from Mobile¶
The Dropbox mobile apps also have a 'Camera Upload' feature which syncs photos to Dropbox, and then to any machine with Dropbox installed.
To auto-import uploaded files into PhotoPrism;
- Install the Dropbox iOS or Android app.
- Enable 'Camera Uploads' in the Dropbox app's settings.
- Install the Dropbox desktop client on your server or a network-accessible machine
- Configure the
Camera Uploadsfolder as your
importdirectory for PhotoPrism. In your
docker-compose.ymlfile, this is;
volumes: - "~/Dropbox/Camera Uploads:/photoprism/import"
- Optional: Enable 'delete on import' in PhotoPrism's settings to delete imported files from Dropbox. This saves Dropbox space, allowing you to remain within the 2 GB free tier.
The Dropbox mobile app needs to be opened periodically or it tends to fail to identify and sync new photos.
Smart / Selective Sync¶
A useful (although paid) feature is Dropbox Smart Sync (with optional auto-evict) which will download the files from Dropbox's servers only when you (or PhotoPrism) accesses them (such as during initial indexing, or when downloading an original file via the PhotoPrism interface).
This can save space on your server by automically offloading the originals unless/until they're viewed.