R
R
rabbdroid2015-12-14 21:03:58
bash
rabbdroid, 2015-12-14 21:03:58

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

2 answer(s)
S
sim3x, 2015-12-14
@sim3x

www.drush.org/en/master/cron

A
AndGroup, 2015-12-21
@AndGroup

On behalf of which user should this script be executed?
# m h dom mon dow user command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question