Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sync_google_photos_to_local_linux_server [11.08.2019 19:10]
Pascal Suter created
sync_google_photos_to_local_linux_server [14.08.2019 14:40]
Pascal Suter [Sync Google Photos to loacl Linux server]
Line 1: Line 1:
 ====== Sync Google Photos to loacl Linux server ====== ====== Sync Google Photos to loacl Linux server ======
 +===== Caution =====
 +first a word of Caution. the below presented solution does not really work for me at the moment. issue #1 is, that it's only downloading a subset of all my photos, so it seems to randomly miss some pictures. Issue #2 is a known issue documented on the project'​s webpage: GPS data is stripped from the pictures. I haven'​t had time to test ou the experimental functionality to grab that data through another way. 
 +
 +In the meantime, I'm thinking about automating the handling of [[https://​takeout.google.com|Google Takeout]] export emails. This Service can be set up to send you an email every two months with a download link to download all your Data which is stored on the google cloud. Two caveats though: 1.) the service can only be setup for a year (6 backups) and neets to be re-started thereafter, 2.) from what i understand one would download a full backup every second month.. but hey, with today'​s bandwith and unlimited volumes, that's not such a big issue. ​
 +
 ===== Why? ===== ===== Why? =====
 i finally gave in to the amazing functionality that google photos provides using AI for object detection as well as location data and much more to help you find a picture you're looking for. Also the way it integrates with android superb. If I switch to a new phone or use my tablet every now and then, my photos are just there and I don't need to worry anmore about syncing anything.. Even though i generally like to stay on top of my data and manage myself what is synced to where, it is nice to have somthing that is just there and works automatically for once :)  i finally gave in to the amazing functionality that google photos provides using AI for object detection as well as location data and much more to help you find a picture you're looking for. Also the way it integrates with android superb. If I switch to a new phone or use my tablet every now and then, my photos are just there and I don't need to worry anmore about syncing anything.. Even though i generally like to stay on top of my data and manage myself what is synced to where, it is nice to have somthing that is just there and works automatically for once :) 
Line 21: Line 26:
   * now go again to create credentials and for the application type choose "​Other"​   * now go again to create credentials and for the application type choose "​Other"​
   * you will then be presented with your client-id and secret.. just click okay.. now you can download the client-id as a json file from your credentials screen. save the file to ''​~/​.config/​gphotos-sync/​client_secret.json''​ (I had to create the directory first) ​   * you will then be presented with your client-id and secret.. just click okay.. now you can download the client-id as a json file from your credentials screen. save the file to ''​~/​.config/​gphotos-sync/​client_secret.json''​ (I had to create the directory first) ​
-  * now run gphotos-sync and pass the folder where you want to keep your local copy of your photos as argument: <​code>​gphotos-sync /​data/​google-photos/</​code>​ + 
-  ​* ​it will now ask you to open a link and allow the app to access your google photos.. do that and paste back the code that you are given after the login.  +now run gphotos-sync and pass the folder where you want to keep your local copy of your photos as argument: <​code>​gphotos-sync /​data/​google-photos/</​code>​ 
-  ​* ​+ 
 +it will now ask you to open a link and allow the app to access your google photos.. do that and paste back the code that you are given after the login.  
 + 
 +last but nto least to run this automatically in the background, add the above command to your user's crontab (by running ''​crontab -e''​ as the user)  
 +