{"id":10,"date":"2017-12-10T09:36:14","date_gmt":"2017-12-10T09:36:14","guid":{"rendered":"http:\/\/vacilos.com\/blog\/?p=10"},"modified":"2019-10-24T12:33:53","modified_gmt":"2019-10-24T09:33:53","slug":"multiple-excludes-in-tar","status":"publish","type":"post","link":"http:\/\/vacilos.com\/blog\/multiple-excludes-in-tar\/","title":{"rendered":"Multiple excludes in tar"},"content":{"rendered":"<p>In order to have multiple excludes in tar command you need to write several<\/p>\n<blockquote>\n<pre>\"--exclude\"<\/pre>\n<\/blockquote>\n<p>tags.<\/p>\n<p>As an example:<\/p>\n<blockquote>\n<pre>tar cfz \/var\/tmp\/backup.tgz \/var\/www\/application --exclude \/var\/www\/application\/webfolder --exclude \/var\/www\/application\/logs<\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to have multiple excludes in tar command you need to write several &#8220;&#8211;exclude&#8221; tags. As an example: tar cfz \/var\/tmp\/backup.tgz \/var\/www\/application &#8211;exclude \/var\/www\/application\/webfolder &#8211;exclude \/var\/www\/application\/logs &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":11,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4,3],"class_list":["post-10","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-tar","tag-terminal"],"_links":{"self":[{"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":12,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions\/12"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/media\/11"}],"wp:attachment":[{"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/vacilos.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}