This is currently the contents of “app-backup” in my cron.daily.
–
#!/bin/sh
Cron Job for Mixbook Code Backup
Updated February 1, 2007
cd /var/rails/beta
rake s3:backup:scm --trace >> /var/rails/beta/log/backup.log
cd /var/rails/beta/log
echo “Backup Successful on” >> backup.log
date >> backup.log
echo “–” >> backup.log
When I run the file “./app-backup,” the RAKE works fine and completes
successfully. However, when this same file is called through crontab, I
get the following output:
–
(in /var/rails/beta)
rake aborted!
Don’t know how to build task ‘s3:backup:scm’
(See full trace by running task with --trace)
Backup Successful on
Sat Apr 21 04:02:39 PDT 2007
Anybody have any clue why this is happening?