{"id":136,"date":"2011-02-08T09:35:32","date_gmt":"2011-02-08T17:35:32","guid":{"rendered":"http:\/\/seanism.com\/blog\/?p=136"},"modified":"2011-02-08T09:47:59","modified_gmt":"2011-02-08T17:47:59","slug":"migrate-a-repository-subfolder-to-another-repository","status":"publish","type":"post","link":"https:\/\/seanism.com\/blog\/2011\/02\/migrate-a-repository-subfolder-to-another-repository\/","title":{"rendered":"Migrate a Repository Subfolder to Another Repository"},"content":{"rendered":"<p>If you have a subfolder that you&#8217;d like to migrate from one repository to another SVN has some built in tools that allow you to do that.<\/p>\n<ol>\n<li>Open a command prompt and point it to the directory SVN is installed. \u00a0For Windows that is <strong><span style=\"color: #000000;\">C:\\Program Files\\VisualSVN Server\\bin<\/span><\/strong>. \u00a0The default Repository directory is <strong><span style=\"color: #000000;\">C:\\Repositories<\/span><\/strong>.<\/li>\n<li>Type: <strong><span style=\"color: #000000;\">svnadmin dump &#8220;path to Repository&#8221; &gt; repoDumpFile.dmp<\/span><\/strong><\/li>\n<li>You&#8217;ll then to filter out everything but the sub directory you want to migrate.<br \/>\nType: <strong><span style=\"color: #000000;\">svndumpfilter include &#8220;Path to Subfolder&#8221; &lt; repoDumpFile.dmp &gt; Filtered-repoDumpFile.dmp<\/span><\/strong><\/li>\n<li>The above command will include all revisions even those not relevant to the subfolder you are migrating. \u00a0If you&#8217;d like to remove the non relevant revisions and\/or re number them you can use the below command instead of the above.<br \/>\n<span style=\"color: #000000;\">Type: <strong>svndumpfilter include &#8220;Path to Subfolder&#8221; &#8211;drop-empty-revs &#8211;renumber-revs\u00a0&lt; repoDumpFile.dmp &gt; Filtered-repoDumpFile.dmp<\/strong><\/span><\/li>\n<li>Let&#8217;s create the new Repository.<br \/>\nType: <strong><span style=\"color: #000000;\">svnadmin create &#8220;Path to Repositories\\New Repository Name&#8221;<\/span><\/strong><\/li>\n<li>Now we import the file.<br \/>\nType: <strong><span style=\"color: #000000;\">svnadmin load &#8211;ignore-uuid <strong>&#8220;Path to Repositories\\New Repository Name&#8221;<\/strong> &lt; Filtered-repoDumpFile.dmp<\/span><\/strong><\/li>\n<\/ol>\n<p>References: <a href=\"http:\/\/svnbook.red-bean.com\/nightly\/en\/svn.reposadmin.maint.html\" target=\"_blank\">http:\/\/svnbook.red-bean.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a subfolder that you&#8217;d like to migrate from one repository to another SVN has some built in tools that allow you to do that. Open a command prompt and point it to the directory SVN is installed. \u00a0For Windows that is C:\\Program Files\\VisualSVN Server\\bin. \u00a0The default Repository directory is C:\\Repositories. Type: svnadmin&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3],"tags":[73,4,71,6,40],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-it","tag-dump","tag-svn","tag-svnadmin","tag-visualsvn","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1vc3H-2c","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":10,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seanism.com\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}