<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: oops, didn't mean to rake that</title>
    <link>http://www.robbyonrails.com/articles/2005/05/15/oops-didnt-mean-to-rake-that</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>oops, didn't mean to rake that</title>
      <description>&lt;p&gt;I accidental caused typo to delete everything. I switched to production and it wasn&amp;#8217;t working, ran rake and (had used the same db name) and goodbye 63 entries.
&lt;br /&gt;&lt;br /&gt;
A backup! Woo&amp;#8230; untar my pg_dump file&amp;#8230; nothing there. Apparently, I was running the wrong version of pg_dump against the postgresql version for my typo blog. Never noticed that til now.
&lt;br /&gt;&lt;br /&gt;
oh well&amp;#8230;
&lt;br /&gt;&lt;br /&gt;
but wait! What about my &lt;span class="caps"&gt;RSS&lt;/span&gt; feed? Well, my &lt;span class="caps"&gt;RSS&lt;/span&gt; reader has a cache of all comments and entries! So, I am working on a script to import everything back into typo. It&amp;#8217;s &lt;strong&gt;almost&lt;/strong&gt; working for all the entries. Trying to do &lt;span class="caps"&gt;SQL&lt;/span&gt; inserts, is being quirky&amp;#8230; I might try to add them one-by-one through the script via the typo web service.
&lt;br /&gt;&lt;br /&gt;
It&amp;#8217;s the next day and I have imported all of my entries from my &lt;span class="caps"&gt;RSS&lt;/span&gt; reader cache file&amp;#8230; and all my comments! What I did lose were all the email/links associated to comment posters&amp;#8230; and they&amp;#8217;re displaying in reverse order in the comments section&amp;#8230; but it&amp;#8217;s all there (from what I can tell).
&lt;br /&gt;&lt;br /&gt;
Now, to fix that postgresql backup script to use the right version of pg_dump. :-)
&lt;br /&gt;&lt;br /&gt;
In the end, I learned a lot about regular expressions in ruby and it&amp;#8217;s been a fun experience&amp;#8230;despite almost losing all my entries to date here.&lt;/p&gt;
</description>
      <pubDate>Sun, 15 May 2005 10:14:39 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:99ae9b4ade36ee125356ed42b27da2c2</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2005/05/15/oops-didnt-mean-to-rake-that</link>
      <category>Off-Topic</category>
    </item>
  </channel>
</rss>
