Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Dec 02 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Dec 02

Maybe this is just a typo in the email, but there should be no space on the
first line of your script. i.e., shoud be "#!/bin/bash", unless I am
loosing my mind (I wouldn't put that past me) :)

I don't know too much about cron, but you may want to add something like "
--log-file=/some/directory/rsync.log" to your rsync command to see if any
errors are getting thrown. But that may not help if the issue is that cron
is not able to find rsync. like if it only looks in /usr/bin and rsync is in
/usr/local/bin. But I don't know.

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using cron to run a script Or get search suggestion and latest updates.


Tagged: