"SQL Import" via Crontab:
1 * * * * cd && cd httpdocs/ && drush sql:cli < db.sql -y
Error: /bin/bash: drush: command not found
Solution:
1 * * * * cd && cd httpdocs/ && php -c ~/httpdocs/drush.ini ~/httpdocs/vendor/drush/drush/drush sql:cli < db.sql -y
Neuen Kommentar schreiben