Quantcast
Channel: Question and Answer » cron
Viewing all articles
Browse latest Browse all 165

Cronjob not being executed

$
0
0

I’m trying to run rsync-books with a crontab. Typing crontab -e outputs:

55 12 * * * diegoaguilar /storage/bin/rsync-books

Where /storage/bin/rsync-books looks like this:

if [ -d "/media/Beagle/books" ]; then
  rsync -rP --delete --verbose /storage/Copy/Books/ /media/Beagle/books >> ~/rsync-books.log
fi

Just to confirm, this script has got executable permissions.
I tried waiting at that time the command, when /media/Beagle/books existed and it neither rsync anyhing or the log file was created.

Is there something I’m missing?


Viewing all articles
Browse latest Browse all 165

Trending Articles