<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Automated Heroku Backups</title>
	<atom:link href="http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/</link>
	<description>A chess-playing machine of the late 18th century, promoted as an automaton but later proved a hoax.</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:13:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: B Seven</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-967</link>
		<dc:creator><![CDATA[B Seven]]></dc:creator>
		<pubDate>Sat, 20 Aug 2011 05:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-967</guid>
		<description><![CDATA[Also, I think it is important to verify the backups periodically. I used this tool to do so: &lt;a href=&quot;http://www.dbsolo.com&quot; rel=&quot;nofollow&quot;&gt;http://www.dbsolo.com&lt;/a&gt;.  
 
I used the following great code (adapted from code courtesy Jack Kinsella) to do a manual backup download to your local machine: Put this code in a file called &quot;download_db&quot;. Change permissions to 744 (for example). Works on Linux (especially Ubuntu). Replace app-name with your app name. 
 
#!/bin/bash 
 
# This script will download a backup of the database to your local machine. 
# Follow me: @jackkinsella 
 
# How to use:  
# cd to app directory. 
# bash script/download_db 
 
function LastBackupName () {  
  heroku pgbackups --app app-name &#124; tail -n 1 &#124; cut -d&quot;&#124;&quot; -f 1 
} 
 
heroku pgbackups:capture --app app-name --expire 
new_backup=$(LastBackupName) 
curl $(heroku pgbackups:url --app app-name $new_backup) &gt; app-name-dB-backup.dump 
 ]]></description>
		<content:encoded><![CDATA[<p>Also, I think it is important to verify the backups periodically. I used this tool to do so: <a href="http://www.dbsolo.com" rel="nofollow">http://www.dbsolo.com</a>.  </p>
<p>I used the following great code (adapted from code courtesy Jack Kinsella) to do a manual backup download to your local machine: Put this code in a file called &quot;download_db&quot;. Change permissions to 744 (for example). Works on Linux (especially Ubuntu). Replace app-name with your app name. </p>
<p>#!/bin/bash </p>
<p># This script will download a backup of the database to your local machine.<br />
# Follow me: @jackkinsella </p>
<p># How to use:<br />
# cd to app directory.<br />
# bash script/download_db </p>
<p>function LastBackupName () {<br />
  heroku pgbackups &#8211;app app-name | tail -n 1 | cut -d&quot;|&quot; -f 1<br />
} </p>
<p>heroku pgbackups:capture &#8211;app app-name &#8211;expire<br />
new_backup=$(LastBackupName)<br />
curl $(heroku pgbackups:url &#8211;app app-name $new_backup) &gt; app-name-dB-backup.dump</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B Seven</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-966</link>
		<dc:creator><![CDATA[B Seven]]></dc:creator>
		<pubDate>Sat, 20 Aug 2011 02:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-966</guid>
		<description><![CDATA[It worked for me. Thanks! Rails 3.0.7. ]]></description>
		<content:encoded><![CDATA[<p>It worked for me. Thanks! Rails 3.0.7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Roberts</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-965</link>
		<dc:creator><![CDATA[Glenn Roberts]]></dc:creator>
		<pubDate>Wed, 12 Jan 2011 11:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-965</guid>
		<description><![CDATA[Heroku PGBackups have indeed superseded the old bundles.
 

 
Some very cool features, like transferring db&#039;s between Heroku apps.
 

 
Check it out: &lt;a href=&quot;http://docs.heroku.com/pgbackups&quot; rel=&quot;nofollow&quot;&gt;http://docs.heroku.com/pgbackups&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>Heroku PGBackups have indeed superseded the old bundles.</p>
<p>Some very cool features, like transferring db&#039;s between Heroku apps.</p>
<p>Check it out: <a href="http://docs.heroku.com/pgbackups" rel="nofollow">http://docs.heroku.com/pgbackups</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Atack</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-964</link>
		<dc:creator><![CDATA[Jon Atack]]></dc:creator>
		<pubDate>Sat, 24 Apr 2010 08:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-964</guid>
		<description><![CDATA[Excellent, Trevor, working great for me.  Thank you! ]]></description>
		<content:encoded><![CDATA[<p>Excellent, Trevor, working great for me.  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Koffel</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-963</link>
		<dc:creator><![CDATA[Will Koffel]]></dc:creator>
		<pubDate>Fri, 23 Apr 2010 15:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-963</guid>
		<description><![CDATA[One more note, late breaking news I have on good authority suggests that Heroku is about to release an official tool for dumping PG databases to S3.  So check if that&#039;s live before rolling your own! ]]></description>
		<content:encoded><![CDATA[<p>One more note, late breaking news I have on good authority suggests that Heroku is about to release an official tool for dumping PG databases to S3.  So check if that&#039;s live before rolling your own!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Koffel</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-962</link>
		<dc:creator><![CDATA[Will Koffel]]></dc:creator>
		<pubDate>Fri, 23 Apr 2010 15:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-962</guid>
		<description><![CDATA[Seems like you could leverage all the work heroku has done for you in the form of their &quot;Bundles&quot; to just capture everything, code and data.
 

  &lt;a href=&quot;http://docs.heroku.com/backups&quot; rel=&quot;nofollow&quot;&gt;http://docs.heroku.com/backups&lt;/a&gt;  

 
You might need to run this on an EC2 instance or some other machine you have (I don&#039;t think it can push remotely, nor do I think that you have temporary storage available on Heroku), but worth pointing out as a sanctioned alternative to pg_dump ]]></description>
		<content:encoded><![CDATA[<p>Seems like you could leverage all the work heroku has done for you in the form of their &quot;Bundles&quot; to just capture everything, code and data.</p>
<p>  <a href="http://docs.heroku.com/backups" rel="nofollow">http://docs.heroku.com/backups</a>  </p>
<p>You might need to run this on an EC2 instance or some other machine you have (I don&#039;t think it can push remotely, nor do I think that you have temporary storage available on Heroku), but worth pointing out as a sanctioned alternative to pg_dump</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Davis</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-961</link>
		<dc:creator><![CDATA[Eric Davis]]></dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-961</guid>
		<description><![CDATA[@Trevor: Hope you don&#039;t mind but I&#039;ve gem&#039;d this code up.  Now just add &quot;heroku_s3_backup&quot; to your .gems file.  I also changed how it&#039;s invoked: instead of using a Rake task you can just call HerokuS3Backup.backup.
 

 
I think this will make it more flexible, e.g. you can have a button on your admin dashboard to do a manual S3 backup...
 

  &lt;a href=&quot;http://rubygems.org/gems/heroku_s3_backup&quot; rel=&quot;nofollow&quot;&gt;http://rubygems.org/gems/heroku_s3_backup&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>@Trevor: Hope you don&#039;t mind but I&#039;ve gem&#039;d this code up.  Now just add &quot;heroku_s3_backup&quot; to your .gems file.  I also changed how it&#039;s invoked: instead of using a Rake task you can just call HerokuS3Backup.backup.</p>
<p>I think this will make it more flexible, e.g. you can have a button on your admin dashboard to do a manual S3 backup&#8230;</p>
<p>  <a href="http://rubygems.org/gems/heroku_s3_backup" rel="nofollow">http://rubygems.org/gems/heroku_s3_backup</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-960</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Tue, 20 Apr 2010 10:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-960</guid>
		<description><![CDATA[Note that you&#039;re free to adapt this script to use alternative S3 gems, or to not use S3 at all. There&#039;s an interesting comment in this thread:
 

  &lt;a href=&quot;http://groups.google.com/group/heroku/browse_thread/thread/39f34dbc4ab632d5&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/heroku/browse_thre...&lt;/a&gt;  

 
...where Andy Shipman shows how he&#039;s backing up his database to Dropbox using this same basic technique. ]]></description>
		<content:encoded><![CDATA[<p>Note that you&#039;re free to adapt this script to use alternative S3 gems, or to not use S3 at all. There&#039;s an interesting comment in this thread:</p>
<p>  <a href="http://groups.google.com/group/heroku/browse_thread/thread/39f34dbc4ab632d5" rel="nofollow">http://groups.google.com/group/heroku/browse_thre&#8230;</a>  </p>
<p>&#8230;where Andy Shipman shows how he&#039;s backing up his database to Dropbox using this same basic technique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-959</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Thu, 15 Apr 2010 11:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-959</guid>
		<description><![CDATA[@Jim, I suppose you could do that. Lemme know if you try it. ]]></description>
		<content:encoded><![CDATA[<p>@Jim, I suppose you could do that. Lemme know if you try it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Gay</title>
		<link>http://trevorturk.wordpress.com/2010/04/14/automated-heroku-backups/#comment-958</link>
		<dc:creator><![CDATA[Jim Gay]]></dc:creator>
		<pubDate>Thu, 15 Apr 2010 10:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=2021#comment-958</guid>
		<description><![CDATA[Trevor, this is a great idea.
 

 
It&#039;s got me wondering if there&#039;s a way to make another separate Heroku app which checks your db dumps periodically, loads them, and reports any errors. ]]></description>
		<content:encoded><![CDATA[<p>Trevor, this is a great idea.</p>
<p>It&#039;s got me wondering if there&#039;s a way to make another separate Heroku app which checks your db dumps periodically, loads them, and reports any errors.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

