Tiny Core Linux

Off-Topic => Off-Topic - Tiny Tux's Corner => Topic started by: remus on May 24, 2018, 06:43:11 PM

Title: gdrive error when executed as cron job
Post by: remus 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 (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
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 (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 :)