I have script that will run just fine from the command line by simply using “sudo pdfBackup” however when I added it to sudo crontab –e, it’s not running. The script is in my /bin/ directory called “pdfBackup”, inside this script is a simple command
#!/bin/bash rsync -az ~/files/content/pdf ~/Dropbox
This is what my crontab file looks like
*/1 * * * * /bin/pdfBackup
I set it up for every minute while I am testing it. I can’t figure out why it’s not working. I have another cron job that runs successfully so I know cron is working.
Thanks in advance.
*Edit - I looked in the the syslog and this but no error or anything?
CRON: (root) CMD (/bin/pdfBackup)