Hi all,
i'm having almost the same problem calling two tasks from one, the
second one is executed on each server :

    namespace :db do
        desc "Copy dump from SVN to temporary directory of db
servers."
        task:copy_dump, :roles => :db do
            run " svn export --username #{scm_user} --password
#{scm_password} \"" + config_yaml["repository"] + "/sites/default/
drupal_basic.backup\" \"/tmp/drupal_basic.backup\""
        end
        desc "Restore database using the dump copied by
mappy:db:copy_dump."
        task:restore, roles => :db do
            run "pg_restore -U postgres /tmp/drupal_basic.backup -d
drupal"
        end
    end

 desc "Restore on bdd production server the database dump under
version control."
 task :before_symlink, :roles => :db do
        mappy.db.copy_dump
        mappy.db.restore
 end

and the output in shell :
 executing `mappy:db:copy_dump'
 executing "svn export --username vdegroote --password mappy \"svn://1
sites/default/drupal_basic.backup\" \"/tmp/drupal_basic.backup\""
 servers: ["10.2.0.176"]
 [10.2.0.176] executing command
 [out :: 10.2.0.176] A    /tmp/drupal_basic.backup
 [out :: 10.2.0.176] Fin d'exportation.
 command finished
 executing `mappy:db:restore'
 executing "pg_restore -U postgres /tmp/drupal_basic.backup -d drupal"
 servers: ["10.2.0.172", "10.2.0.173", "10.2.0.176"]

Any help would be much appreciated...
Thanks.
--
Vincent

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to