Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google\ Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google\ Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.