Crontab funktioniert nicht
Hi @ /32
ich habe ein crontab eingerichtet welches folgendermaßen aussieht:
SHELL=/bin/bash
PATH=/var/www/Backup-Script/
MAILTO=root
HOME=/
04 10 * * * /var/www/Backup-Script/backup.sh
Backup.sh sieht folgendermaßen aus:
mysqldump --user=root --password= 1234 > xyz.dump
tar cfvz html.tar.gz /var/www/html
Wenn ich nun die Backup.sh manuell starte funktioniert alles.
Über Cron geht’s leider nicht.
Log- aus
/var/spool/mail/root/
sagt:
/var/www/Backup-Script/backup.sh: line 1: mysqldump: command not found
/var/www/Backup-Script/backup.sh: line 3: tar: command not found
Vielen Dank!
ich habe ein crontab eingerichtet welches folgendermaßen aussieht:
SHELL=/bin/bash
PATH=/var/www/Backup-Script/
MAILTO=root
HOME=/
04 10 * * * /var/www/Backup-Script/backup.sh
Backup.sh sieht folgendermaßen aus:
mysqldump --user=root --password= 1234 > xyz.dump
tar cfvz html.tar.gz /var/www/html
Wenn ich nun die Backup.sh manuell starte funktioniert alles.
Über Cron geht’s leider nicht.
Log- aus
/var/spool/mail/root/
sagt:
/var/www/Backup-Script/backup.sh: line 1: mysqldump: command not found
/var/www/Backup-Script/backup.sh: line 3: tar: command not found
Vielen Dank!
Please also mark the comments that contributed to the solution of the article
Content-Key: 160352
Url: https://administrator.de/contentid/160352
Printed on: April 27, 2024 at 00:04 o'clock
2 Comments
Latest comment