<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,7 @@
-== 0.3.1 2003-03-17
+== 0.3.2 2008-04-06
+* adding db:clone_to_local task to take a dump on the slice, fetch it, and load it into your dev db on your workstation
+
+== 0.3.1 2008-03-17
 * Make the custom maintenance pages actually work!
 
 == 0.3.0 2008-03-05</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -17,11 +17,21 @@ Capistrano::Configuration.instance(:must_exist).load do
       run &quot;rm -f #{backup_file}&quot;
     end
   
-    # desc &quot;Backup your database to #{shared_path}/db_backups&quot;
-    # task :dump, :roles =&gt; :db, :only =&gt; {:primary =&gt; true} do
-    #   backup_name
-    #   run &quot;mysqldump --add-drop-table -u #{dbuser} -h #{environment_dbhost} -p#{dbpass} #{environment_database} | bzip2 -c &gt; #{backup_file}.bz2&quot;
-    # end
+    desc &quot;Backup your database to #{shared_path}/db_backups&quot;
+    task :dump, :roles =&gt; :db, :only =&gt; {:primary =&gt; true} do
+      backup_name
+      run &quot;mysqldump --add-drop-table -u #{dbuser} -h #{environment_dbhost} -p#{dbpass} #{environment_database} | bzip2 -c &gt; #{backup_file}.bz2&quot;
+    end
+    
+    desc &quot;Sync your production database to your local workstation&quot;
+    task :clone_to_local, :roles =&gt; :db, :only =&gt; {:primary =&gt; true} do
+      backup_name
+      dump
+      get &quot;#{backup_file}.bz2&quot;, &quot;/tmp/#{application}.sql.gz&quot;
+      development_info = YAML.load_file(&quot;config/database.yml&quot;)['development']
+      run_str = &quot;bzcat /tmp/#{application}.sql.gz | mysql -u #{development_info['username']} -p#{development_info['password']} -h #{development_info['host']} #{development_info['database']}&quot;
+      %x!#{run_str}!
+    end
   end
 
 end</diff>
      <filename>lib/eycap/recipes/database.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Eycap #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 3
-    TINY  = 1
+    TINY  = 2
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/eycap/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>604c2377d75ca83da2e253d3ca10f9ddc93d7ec9</id>
    </parent>
  </parents>
  <author>
    <name>atmos</name>
    <email>atmos@atmos.org</email>
  </author>
  <url>http://github.com/engineyard/eycap/commit/78b481f674557cd58f6825b314467d55c3a81541</url>
  <id>78b481f674557cd58f6825b314467d55c3a81541</id>
  <committed-date>2008-04-05T11:59:31-07:00</committed-date>
  <authored-date>2008-04-05T11:59:31-07:00</authored-date>
  <message>adding db:clone_to_local task</message>
  <tree>1d1be7ee61d178f7520ce88a927632ff3001a886</tree>
  <committer>
    <name>atmos</name>
    <email>atmos@atmos.org</email>
  </committer>
</commit>
