I use gdrive to save backups into Drive every night with cron. A few days ago for some reason the API keys didn't work anymore, and the files upload (in cron) asked for new keys, interactively. I only found out after the next day, because Python (?) complained about a socket/address being in use.
I don't ever want the cron script to go into auth flow when I ask for files upload. Maybe that's useful when interactive, but it's breaking when non-interactive.
2 requests:
- Fix the socket error. Apparently you can just overwrite the socket? Maybe that's good enough?
- Add non-interactive mode. Any keys/auth error exits with error message, no auth flow.
I use gdrive to save backups into Drive every night with cron. A few days ago for some reason the API keys didn't work anymore, and the
files upload(in cron) asked for new keys, interactively. I only found out after the next day, because Python (?) complained about a socket/address being in use.I don't ever want the cron script to go into auth flow when I ask for
files upload. Maybe that's useful when interactive, but it's breaking when non-interactive.2 requests: