You could always just have a capistrano task to execute scp on the
production server(s) to transfer the files back to your machine.
There's some stuff you can do (with an environment variable, I think)
to get a reference back to the ssh client's IP as well, so you don't
even have to hard code the location of your workstation.
- Jason
On Oct 29, 2006, at 9:03 PM, Jamis Buck wrote:
> Mike,
>
> If you're not against reading code, you can look at the
> implementation of the file transfer mechanism in capistrano.
> Currently it only works one way ("put"), but it shouldn't be hard
> to implement a "get" function that works similarly.
>
> - Jamis
>
> On Oct 29, 2006, at 5:38 PM, mbailey wrote:
>
>>
>> I'm really impressed with Capistrano and am beginning to convert my
>> personal
>> deployment scripts into capistrano scripts.
>>
>> One script I always write for my rails projects is db_pullback which
>> runs mysqldump on the production database and pipes the output
>> through ssh into mysql on my workstation.
>>
>> ssh -C my.db.com "mysqldump -u root -p --add-drop-table
>> --extended-insert=FALSE \
>> --complete-insert myproject_production --tables $tables" | mysql
>> myproject_development
>>
>>> From reading the docs, I couldn't see how to accomplish this in a
>>> cap
>> task.
>> I'm also wondering how to pull a file back from a production server
>> using a cap task.
>>
>> thanks,
>>
>> Mike
>>
>>
>> >>
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---