hardwario / gupload

Google Drive CLI Uploader
MIT License
16 stars 10 forks source link

Files are not uploaded to Google Drive if gupload is executed from cron #3

Open demodoo opened 1 year ago

demodoo commented 1 year ago

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

ThunHour commented 1 year ago

please using full path of gupload linke 00 14 * "full path of your gupload" /home/ubuntu/odoo15/develop/backup/ -c odoo_backup -d for my case I use /root/.google-drive-upload/bin/gupload backup -d or you can check path by using cmd "sudo which gupload"