Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files are not uploaded to Google Drive if gupload is executed from cron [FIXED] #196

Open
demodoo opened this issue Jun 22, 2023 · 0 comments

Comments

@demodoo
Copy link

demodoo commented Jun 22, 2023

When i execute the command gupload /home/ubuntu/odoo15/develop/backup/ -c odoo_backup -d from the shell everything works fine. Files are uploaded to my Google drive folder. But when I schedule the same command in cron, files are not uploaded. Cron executes the command but files are not uploaded.

Crontab entry:
00 14 * * * gupload /home/ubuntu/odoo15/develop/backup/ -c odoo_backup -d


[EDIT] Using absolute path to gupload fix the problem:
00 14 * * * /home/ubuntu/.google-drive-upload/bin/gupload /home/ubuntu/odoo15/develop/backup/ -c odoo_backup -d

@demodoo demodoo changed the title Files are not uploaded to Google Drive if gupload is executed from cron Files are not uploaded to Google Drive if gupload is executed from cron [FIXED] Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant