WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gdrive error when executed as cron job  (Read 2689 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
gdrive error when executed as cron job
« on: May 24, 2018, 06:43:11 PM »
Hi all,

I use gdrive + cron to automate backups from a server to a google drive account.
https://github.com/prasmussen/gdrive

When running drive manually from the command line it works fine every time.

When running drive as part of a shell script I get frequent failures to upload.

The error
Quote
Failed to upload file: googleapi: Error 403: Rate Limit Excee
ded, rateLimitExceeded

There's a patch I can work into the source and recomile as soon as I get some time.

A discussion about the error here seems to make more sense to me though.
https://productforums.google.com/forum/#!topic/drive/4eg1FFWS3Qg

Does anyone know how I introduce a slight delay in the cron to level out the API workload ?

Thanks for any comments and suggestions :)


Live long and prosper.