Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I added the following using "crontab -e":

* 6 * * *  rsync -arthv /content/ 192.168.1.1:/content  > /tmp/db_rsync.log 2>&1

when I do crontab -l I see the line.

am I missing something? It's not running. It does run manually.

share|improve this question

2 Answers 2

or you can specify the path in crontab as

PATH=/bin:/sbin:/usr/bin

* 6 * * *  rsync -arthv /content/ 192.168.1.1:/content  > /tmp/db_rsync.log 2>&1
share|improve this answer

The PATH for cron is unlikely to be the same as the one you use interactively. Try changing rsync to /usr/bin/rsync.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.