How to backup Google Photos to Google Drive automatically after July 2019 with Apps Script

Updated on Saturday, September 3, 2022

Comments Page 3

Return to post.

Comments

Fabian Briese

Hi Robert, thanks for your help. I forgot a point: click on "Authorize. Close this after you have finished." Now its running. :-)

Robert Ellison

Hurst - I just released the app that sorts pictures and videos into date + month folders. This also handles de-duplication. See Photo Sorter 1.00.

Robert Ellison

Fabian - there are three types of authorization needed, as outlined in the steps above. Make sure that the API is enabled in Google Cloud Console, that the script is authorized to run and that Google Photos has granted access to the script.

If that doesn't help there is a 'Reset Settings' option in the Google Photos Backup menu that gets added to the spreadsheet that hosts the script. Run that and then go to myaccount.google.com, click Security and then Manage third-party access. Find the Google Photos Backup item and click Remove Access. Once this is done run through authorizing again and see if that clears the problem.

Robert Ellison

Cleve - should be possible using the APIs. Would need to enumerate files in drive that look like photos or videos and then upload these to Google Photos. I'm not likely to implement this, it might be that a client app is needed to really solve this problem completely.

Robert Ellison

Logan - UrlFetchApp has a 50MB limit so larger files that that won't work. I'd expect an exception in this case but unfortunately it just downloads a truncated file which isn't good. I'm testing an update that will skip these files and send an email to let you know they need to be downloaded manually, will update once it looks like it's working. I don't see a great work around for this so far but will keep looking.

Fabian Briese

Hi, very nice. Thank you. But I have some trouble: When clicking on "Backup Now" I get this error message: "Error: Access not granted or expired."

Any ideas?

Cleve

Any way with a script to reverse this process? (ie. automatically copy all pictures in Drive over to photos)

Logan

is this only work w/ photos?

I synced video clips and synced files only have 50mb files and cannot play

Hurst

Perfect - looking forward to it!

Robert Ellison

I have an app that does this which I've used for a while because even the old integration had this problem of sticking everything in one folder. I'll look at tidying this up and releasing it - ideally solving the duplicate problem at the same time. Will probably be a few weeks before I get to this.

Add Comment

All comments are moderated. Your email address is used to display a Gravatar and optionally for notification of new comments and to sign up for the newsletter.