# S3 Rake - "Don't know how to build task s3:backup:db"

**URL:** <https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957>\
**Category:** Rails\
**Created:** [September 30, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957 "2007-09-30T23:45:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 30, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957/1 "2007-09-30T23:45:21Z")

</div>

Hi there,

I added Adam G.'s S3 Rake script to my rails app. and it works  
great on my local box under development but after ‘cap deploy’ on the  
production server it wont run saying,

rake RAILS\_ENV=production s3:backup:db --trace  
Don’t know how to build task ‘s3:backup:db’

If I run locally “rake -T” the task gets displayed but if I do “rake -  
T” on the server the task wont show.

I have the same rake versions on both machines (rake, version 0.7.3)  
and the same Rails versions 1.2.2

anybody knows what is wrong ?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 1, 2007, 12:04am UTC](https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957/2 "2007-10-01T00:04:05Z")

</div>

I’m not familiar with S3, but is it a plugin? If so do you have  
config.plugins specified in production.rb and forget to include that  
plugin? I’m just taking a stab in the dark, but thought it might help.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 1, 2007, 9:41am UTC](https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957/3 "2007-10-01T09:41:30Z")

</div>

thanks william,

it is not a pluging, it is a .rake task under lib/tasks

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 1, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/s3-rake-dont-know-how-to-build-task-s3db/115957/4 "2007-10-01T17:58:27Z")

</div>

I assume that you checked that the task file was actually uploaded and  
that the permissions are fine? There is definitely nothing wrong with  
your syntax.
