Sync photos from a digital camera or other external devices to a local computer while automatically organizing them and generating a static gallery website.
Run the ./install
script. This will create and enable user systemd
service.
Run ./bin/photosync-env photosync-watch
to start manually.
For the automatic mounting and copying to work. External device root partition needs to have .photosync
file with contents of the identifier (can be any string, as long as it is unique across different devices/volumes).
Main processes:
photosync-env
- sets up environment and launches all processesphotosync-watch
- the base process, watches for newly plugged in drivesphotosync-mount
- handles drive mounting and unmountingphotosync-process
- mounts and checks drives that are intended to be processedphotosync-cache
- caches file listphotosync
- copies photos from one directory (ext. drive in this case) to a local folder
Helpers:
photosync-serve
- serves the galleryphotosync-notify
- notifies about the process (Pushover)photosync-gallery
- generates a static gallery website
udisks2
- unprivileged device mountingexiftool
- retrieving photo creation datecurl
- for notificationsdocker
- for static gallery generation
For static gallery generation library thumbsup is used.