Sync Google Photos on a local disk.
- Get credentials.json from google console and put them into the secrets folder
- Set photo path in config.json (along with other params)
- Run
node app
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)
It will load and set up jobs and that's it.
$ node app
$ node app -v
$ node app -c
$ node app --job <job-name> --params <job-params-space-separated>
$ node app --job probeMediaItemRefresh --params <<renewIfOlderThanDays>> <<numberOfItems>>
$ node app --job downloadMediaItemFile --params <<limitNumberOfItems>>
$ node app --job searchMediaItemsJob --params <<numOfDaysBack>> <<limitNumOfItems>>
$ node app --job appStartupJob
[ ] resume download -- right now it overwrites if a file is partially downloaded