Answer the question
In order to leave comments, you need to log in
Cron does not run bash script, how to live?
script works locally
#/bin/bash
name="busya_$(date '+%d-%m-%Y')"
drush archive-dump --destination=/var/www/html/htdocs/sites/backup/" $name".tar.gz
crontab -e
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
* 12 * * * /var/www/html/htdocs/sites/backup/backup.sh >/dev/null 2>&1
What's wrong??(((
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question