I have a simple little script for running unison. /usr/bin/sync.sh:
#!/bin/bash
unison -auto -silent /PriStorage ssh://KNTCLFS002//PriStorage
It works great from the command line:
sh /usr/bin/sync.sh
I am having issues running this from a cronjob. I have tried adding this line to /etc/cron.d/sync and crontab -e:
2 * * * * root sh /usr/bin/sync.sh
Nothing seems to work. Any help will be greatly appreciated.
Bookmarks