Simply use a `before` hook and hook into anything before `update_code`.

On Monday, December 19, 2011 at 4:39 PM, Roch Delsalle wrote:

> Hi,
> 
> I would like to know how I can execute a command on the server before
> capistrano switches to the new sources. I want to backup some files
> before the sources are replaced.
> 
> Thanks,
> 
> Roch
> 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected] 
> (mailto:[email protected])
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> 
> 


-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to