[capistrano] How to run a command before the deploy starts

2011-12-19 Thread Roch Delsalle
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

Re: [capistrano] How to run a command before the deploy starts

2011-12-19 Thread Lee Hambley
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