{"id":217,"date":"2014-09-07T00:04:22","date_gmt":"2014-09-07T00:04:22","guid":{"rendered":"http:\/\/technese.com\/?p=217"},"modified":"2019-12-26T21:56:18","modified_gmt":"2019-12-26T21:56:18","slug":"best-compression-using-tar-and-7z","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2014\/09\/07\/best-compression-using-tar-and-7z\/","title":{"rendered":"Best compression using tar and 7z"},"content":{"rendered":"\n<p>Compress using tar and 7z<\/p>\n<p><pre><code>$ tar cf - &lt;source folder\/file&gt; | 7z a -si &lt;Destination archive&gt;.tar.7z<\/code><\/pre><\/p>\n<p><pre><code>$ 7z x -so yourfile.tar.7z | tar xf - -C target_dir<\/code><\/pre><\/p>\n\n\n\n<p>Reference:<br>1. <a href=\"http:\/\/askubuntu.com\/questions\/300097\/how-do-i-create-tar-7z-file-from-the-command-line\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">http:\/\/askubuntu.com\/questions\/300097\/how-do-i-create-tar-7z-file-from-the-command-line<\/a><\/p>\n\n\n\n<p>2. <a href=\"http:\/\/askubuntu.com\/questions\/341628\/how-to-extract-tar-7z-files-from-command-line\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">http:\/\/askubuntu.com\/questions\/341628\/how-to-extract-tar-7z-files-from-command-line<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compress using tar and 7z $ tar cf &#8211; &lt;source folder\/file&gt; | 7z a -si &lt;Destination archive&gt;.tar.7z $ 7z x -so yourfile.tar.7z | tar xf &#8211; -C target_dir Reference:1. http:\/\/askubuntu.com\/questions\/300097\/how-do-i-create-tar-7z-file-from-the-command-line 2. http:\/\/askubuntu.com\/questions\/341628\/how-to-extract-tar-7z-files-from-command-line<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":8,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/217\/revisions\/250"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}