Google Photos Sync downloads your Google Photos to the local file system. It will backup all the photos the user uploaded to Google Photos, but also the album information and additional Google Photos ‘Creations’ (animations, panoramas, movies, effects and collages).
docker run -d \
--name="GooglePhotosSync" \
-v /path/to/config/:/config:rw \
-v /path/to/storage/:/storage:rw \
rix1337/docker-gphotos-sync
-
Place your
client_secret.json
at /configHow to get it is best described at Logix's Article at Linux Uprising
Beware: Use a "Desktop App" auth token, as opposed to a "Webapp", as there is no more "Other" option
-
Afterwards you need to sign into the application once which cannot be done headlessly (using the "Syncing" command)
-
Afterwards you can call the "Syncing" command any time you wish, as long as the container is running (e.g. by using cron).
docker exec -it GooglePhotosSync gphotos-sync /storage
By itself this container will do nothing. A sync will only occur when you call the above command on a running container.