{"id":1745,"date":"2017-12-06T05:30:44","date_gmt":"2017-12-06T05:30:44","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1745"},"modified":"2021-02-27T09:31:10","modified_gmt":"2021-02-27T09:31:10","slug":"reduce-the-size-of-svn-repos-or-cleanup-revsion","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/","title":{"rendered":"Reduce the size of SVN repos or cleanup revsion"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion<\/strong><br \/>\nHow to reduce the Repos size drastically without impacting the integrity and version of the files?<\/p>\n<p>How to cleanup and Reduce the size of SVN repos?<br \/>\nThe way Subversion and CVS work is that they keep an entire history of changes, including deleted files, binary files, etc. Each revision is dependent on the last revision, so you can&#8217;t just delete and oblitrate out a revision somewhere in the middle or we corrupt repository.<\/p>\n<p>There are few things we can do if we are running out of space&#8230;<\/p>\n<p>Option 1: Dump and load to new repos<br \/>\nRemoving old revisions kind of defeats the point of version control so it is not recommended but Dump out the revisions you want to keep, then put them into a new repo, and delete the old one.<br \/>\nNew repos should be set with latest svn release which will take less disk size.<br \/>\nsvnadmin dump \/path\/to\/current\/repo -r48:50 > svn.dump<br \/>\nsvnadmin create \/path\/to\/new\/repo<br \/>\nsvnadmin load \/path\/to\/new\/repo < svn.dump\n\n<a href=\"http:\/\/svnbook.red-bean.com\/en\/1.7\/svn.ref.svnadmin.c.dump.html\">svnbook.red-bean.com\/en\/1.7\/svn.ref.svnadmin.c.dump.html <\/a><br \/>\n<a href=\"http:\/\/svnbook.red-bean.com\/en\/1.7\/svn.ref.svnadmin.c.load.html\">svnbook.red-bean.com\/en\/1.7\/svn.ref.svnadmin.c.load.html <\/a><\/p>\n<p>Option 2: svndumpfilter<br \/>\nUse svndumpfilter to include\/exclude the particular bits you want. svndumpfilter is a command-line utility for removing history from a Subversion dump file by either excluding or including paths beginning with one or more named prefixes.<br \/>\n<a href=\"http:\/\/svnbook.red-bean.com\/en\/1.1\/ch05s03.html#svn-ch-5-sect-3.1.3\">svnbook.red-bean.com\/en\/1.1\/ch05s03.html#svn-ch-5-sect-3.1.3 <\/a><\/p>\n<p>Option 3:svnsync<br \/>\nreplicate the repository with svnsync after configuring path-based authorization rules that deny read access to any paths that need to be filtered from history. Unlike svndumpfilter, svnsync will automatically translate copy operations with an unreadable source path into normal additions, which is useful if history involving copy operations needs to be filtered.<\/p>\n<p><a href=\"http:\/\/svnbook.red-bean.com\/en\/1.7\/svn.reposadm...in.maint.replication\">svnbook.red-bean.com\/en\/1.7\/svn.reposadm&#8230;in.maint.replication <\/a><br \/>\n<a href=\"http:\/\/svnbook.red-bean.com\/en\/1.7\/svn.serverco....pathbasedauthz.html\">svnbook.red-bean.com\/en\/1.7\/svn.serverco&#8230;.pathbasedauthz.html<\/a><br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion How to reduce the Repos size drastically [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[393],"tags":[395],"class_list":["post-1745","post","type-post","status-publish","format-standard","hentry","category-svnsubversion-version-control-systems","tag-svn"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reduce the size of SVN repos or cleanup revsion - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reduce the size of SVN repos or cleanup revsion - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion How to reduce the Repos size drastically [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-06T05:30:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:31:10+00:00\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Reduce the size of SVN repos or cleanup revsion\",\"datePublished\":\"2017-12-06T05:30:44+00:00\",\"dateModified\":\"2021-02-27T09:31:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/\"},\"wordCount\":338,\"commentCount\":0,\"keywords\":[\"SVN\"],\"articleSection\":[\"SVN(Subversion)\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/\",\"name\":\"Reduce the size of SVN repos or cleanup revsion - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2017-12-06T05:30:44+00:00\",\"dateModified\":\"2021-02-27T09:31:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/reduce-the-size-of-svn-repos-or-cleanup-revsion\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reduce the size of SVN repos or cleanup revsion\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reduce the size of SVN repos or cleanup revsion - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/","og_locale":"en_US","og_type":"article","og_title":"Reduce the size of SVN repos or cleanup revsion - scmGalaxy","og_description":"rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion How to reduce the Repos size drastically [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/","og_site_name":"scmGalaxy","article_published_time":"2017-12-06T05:30:44+00:00","article_modified_time":"2021-02-27T09:31:10+00:00","author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Reduce the size of SVN repos or cleanup revsion","datePublished":"2017-12-06T05:30:44+00:00","dateModified":"2021-02-27T09:31:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/"},"wordCount":338,"commentCount":0,"keywords":["SVN"],"articleSection":["SVN(Subversion)"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/","name":"Reduce the size of SVN repos or cleanup revsion - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2017-12-06T05:30:44+00:00","dateModified":"2021-02-27T09:31:10+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/reduce-the-size-of-svn-repos-or-cleanup-revsion\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Reduce the size of SVN repos or cleanup revsion"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1745"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1745\/revisions"}],"predecessor-version":[{"id":1746,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1745\/revisions\/1746"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}