Skip to content
Sync Google Photos on a local disk
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
secrets
test
.gitignore
LICENSE
README.md
app-controller.js
app.js
config.json
downloader.js
google-auth.js
google-photos.js
jobs.js
log.js
my-key-value-store.js
now.js
package-lock.json
package.json
util.js

README.md

Google Photos Sync

Sync Google Photos on a local disk.

THIS IS A READ-ONLY / DOWNLOAD SYNC

Set up

  1. Get credentials.json from google console and put them into the secrets folder
  2. Set photo path in config.json (along with other params)
  3. Run node app

How it works

It has 3 cron jobs which are:

  • getting and caching google photo metadata (4x a day)
  • probing files for their content length - file change detection (every hour - a limited number of items)
  • actually downloading files (every hour - a limited number of items)

CLI commands

start

It will load and set up jobs and that's it.

$ node app

output verbose logs

$ node app -v

count number of metadata items downloaded and stored

$ node app -c

run a specific job once and exit

$ node app --job <job-name> --params <job-params-space-separated>

For a full list of jobs and job parameters, check out jobs.js.

You can’t perform that action at this time.