{"id":272,"date":"2021-03-24T06:53:58","date_gmt":"2021-03-24T06:53:58","guid":{"rendered":"http:\/\/symbioticindia.in\/docu\/?p=272"},"modified":"2021-03-24T06:53:58","modified_gmt":"2021-03-24T06:53:58","slug":"zip-do-the-splitting","status":"publish","type":"post","link":"http:\/\/symbioticindia.in\/docu\/2021\/03\/24\/zip-do-the-splitting\/","title":{"rendered":"zip do the splitting"},"content":{"rendered":"\n<p>Letting zip do the splitting for you will be much easier to automate than trying to figure it out by yourself. If your goal is 20MB zip files, you will have to estimate the compressed size of each file before adding it to the archive. Is there a reason you don&#8217;t want to just let zip do the splitting for you? Here&#8217;s how you&#8217;d do it with gnu zip:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zip -s 20m -r myzip.zip mydir\n<\/code><\/pre>\n\n\n\n<p>This will create 20MB zipped files with incremental index numbers in the filename.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Letting zip do the splitting for you will be much easier to automate than trying to figure it out by yourself. If your goal is 20MB zip files, you will have to estimate the compressed size of each file before adding it to the archive. Is there a reason you don&#8217;t want to just let ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/symbioticindia.in\/docu\/2021\/03\/24\/zip-do-the-splitting\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-utilities"],"_links":{"self":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":1,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":273,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/272\/revisions\/273"}],"wp:attachment":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}