{"id":5,"date":"2008-08-05T11:23:35","date_gmt":"2008-08-05T18:23:35","guid":{"rendered":"https:\/\/blag.samandshannon.com\/?p=5"},"modified":"2008-08-05T11:23:35","modified_gmt":"2008-08-05T18:23:35","slug":"migrating-from-trac-to-redmine-on-dreamhost","status":"publish","type":"post","link":"https:\/\/blag.samandshannon.com\/?p=5","title":{"rendered":"Migrating from Trac to Redmine (on Dreamhost)"},"content":{"rendered":"<p>I recently switched a couple of side projects I had hosted with Dreamhost from Trac to Redmine.\u00c2\u00a0 The process was surprisingly easy.<\/p>\n<p>Even though the actual migration was easy, it took me a long time (almost longer than my patience would tolerate) to find the command that would do the import of wiki data, tickets, milestones, etc.  In an effort to pull another soul out of the time suck that is &#8216;googling for a quick how-to&#8217;, here&#8217;s a quick how-to:<\/p>\n<p><em>I use Dreamhost, but these commands should be adaptable to any hosting environment with an ssh terminal.<\/em><br \/>\n<pre><code class=\"preserve-code-formatting\">\n$cd your.redmine.subdomain\n$rake redmine:migrate_from_trac RAILS_ENV=&quot;production&quot;\n\nTrac directory []: \/home\/.orchid\/path\/to\/your\/trac_site\nTrac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: mysql\nTrac database host [localhost]: mysql.your_hostname.com\nTrac database port [3306]:\nTrac database name []: trac_db\nTrac database schema [public]:\nTrac database username []: trac_db_username\nTrac database password []: trac_db_password\nTrac database encoding [UTF-8]: latin1\nTarget project identifier []: redmine-project-id\n\nThis project already exists in your Redmine database.\nAre you sure you want to append data to this project ? [Y\/n] y\n\nMigrating components....\nMigrating milestones..\nMigrating custom fields\nMigrating tickets........\nMigrating wiki........................\n\nComponents:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4\/4\nMilestones:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2\/2\nTickets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8\/8\nTicket files:&nbsp;&nbsp;&nbsp;&nbsp;0\/0\nCustom values:&nbsp;&nbsp; 0\/0\nWiki edits:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;24\/24\nWiki files:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1\/1\n<\/code><\/pre><\/p>\n<p>The import works pretty well.  The only big thing I noticed missing so far is &#8220;reply-formatted&#8221; text in the wiki page:<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\n &gt; wiki text that begins with a greater-than sign to indicate e-mail\n &gt; replies did not get imported.\n<\/code><\/pre><\/p>\n<p>Hope it&#8217;s helpful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently switched a couple of side projects I had hosted with Dreamhost from Trac to Redmine.\u00c2\u00a0 The process was surprisingly easy. Even though the actual migration was easy, it took me a long time (almost longer than my patience would tolerate) to find the command that would do the import of wiki data, tickets, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"","bgseo_robots_follow":"","footnotes":""},"categories":[4],"tags":[11,10,9,6,8,7],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-softwaredevelopment","tag-dreamhost","tag-rails","tag-rake","tag-redmine","tag-scm","tag-trac"],"_links":{"self":[{"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":0,"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blag.samandshannon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}