I have a script (
buphomebasis.sh)that uses rsync to make backups from my home directory. Its content is:
sudo rsync -avz /home /media/myname/mybackupdsk
It works very well, just by invoking that script from the commandline.
Now I made a cronjob (
backup.sh); its content is:
SHELL=/bin/bash 45 5 * * * buphomebasis.sh
This should make a backup every day at 45 minutes past 5 AM.
Both scripts are in my
backup.sh results in the following error message:
cronjobs/backup.sh: regel 23: 45: opdracht niet gevonden
or in English:
cronjobs/backup.sh: line 23: 45: command not found
Can anybody help me with what is wrong/missing in this cronjob?