I am trying to create hourly backups using a makefile, which uses rsync internally. (* */1 * * * backup.sh). Backup.sh is in my home folder. The reason I'm using a makefile is because I also do a backup on my portable disk apart from my remote server, and using a makefile enables me not to rewrite the same script again.
The problem is: The makefile is unable to run when called from cron. Cron and makefile, when called individually, works like a charm. But the whole thing doesn't work as a unit. Since the cron would run at the backend, I have put silent/quiet modes for make/rsync. But even that doesn't solve the problem.
Any help would be appreciated.
Thanks in advance, Royzz
env -i ./script.shthen you're ready for cron. – Jens Aug 29 '11 at 12:14