Server-side management of photos. Intended to replace Google Photos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Macoy Madson 0574803c1d Fixed typos in readme 1 year ago
.gitignore Initial commit 1 year ago
CleanUpPhonePhotos.py Full cleanup functionality 1 year ago
LICENSE Initial commit 1 year ago
ReadMe.org Fixed typos in readme 1 year ago
Settings.py Full cleanup functionality 1 year ago
settings.json Full cleanup functionality 1 year ago

ReadMe.org

Phone Photo Manager

Server-side management of photos. Intended to replace the core functionality of Google Photos:

  • Delete oldest files once phone Photos folder reaches a configurable size

  • Make sure photos are in server-side archive before removing from phone

  • Browse archived photos from any computer

  • Keep photo on phone explicitly (regardless of file age)

    Network

I'm using Syncthing to get files to/from my phone's Photo folder. The network looks like this:

Device Folder Purpose
Phone Photos New photos saved here by the camera. Sync both ways so that servers can remove photos easily
Amazon Server Photos Direct sync with Phone Photos. Pi Server controls which photos are on phone by changing this folder
Archive Photos folder is synced via rsync to the archive
Home Pi Photos Redundant Photos sync (all devices sync to each other)
Archive Redundant Archive. Phone can download from Pi or Amazon servers
Cold Storage Because Amazon is limited in space, only keep the full collection of photos on the Pi. Nothing is ever removed from Cold Storage

Setup

You will need to set up Syncthing (or some other file sync service) to suit your requirements.

I use rsync -a to sync Photos with Archive and Archive with Cold Storage. The former is on a cronjob every 30 minutes or so, and the latter is a job which should run every couple hours. Cleanup (reclaiming storage on phone and limited-space server) will happen every morning at 4 AM.