Skip to content

ahadyekta/nodejs-google-photo-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch upload in google photos (picasa)

this nodejs application walk through folders containing images to upload it into an album of google photo account.

How to use:

  • first you have to install nodejs on your system.
  • clone the project and inside the directory run :
npm install
  • run the server to authenticate your google account:
node index.js
  • get the id of your target album and copy it into the config.json file . you should place it in albumId field.
  • provide the images path in the imagePath field of the config file. The image directory should be like this

imagePath

------------->album1

----------------------->image1.jpg

----------------------->image2.jpg

----------------------->image3.jpg

------------->album2

----------------------->image4.jpg

----------------------->image5.jpg

----------------------->image6.jpg

it means that all images should be placed inside an album folder and (just one level )

  • now start the looper to upload:

node looper

this will save logs of uploaded photos in logs folder . whenever an album get finished, it changes the status of it to complete. So it never process that folder again.

  • you can kill the process and start it again . the app will resume the process by the help of log files. so you can use cronjob to control the start and finish time (when the net is free at nights for example).

for example:


40 17 * * * /usr/bin/node /home/ahad/projects/photo-backup/looper.js
41 17 * * * killall node
41 17 * * * kill -9 $(ps aux | grep '\snode\s' | awk '{print $2}')

(you should write the looper absolute path there)

About

Nodejs google photo (picasa) batch uploader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published