I have a shell script that executes drush sql-dump
, compresses the result and then sends it to a backup server.
It works fine when run from the command line as root but it is failing silently and dispatching an empty file when run as part of a scheduled cron job.
This script has worked previously for me on another website as a cronjob and so I am somewhat confused what would be wrong now.
I work with Drupal 8.3.1 and Drush Version 8.1.11.
Any suggestions?
-v
for verbose messages. Probably you're out of memory or you need to increase PHP time execution for drush.