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.
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