{"id":799,"date":"2020-09-07T15:18:12","date_gmt":"2020-09-07T07:18:12","guid":{"rendered":"https:\/\/www.kiccleaf.com\/?p=799"},"modified":"2020-09-07T15:18:13","modified_gmt":"2020-09-07T07:18:13","slug":"linux-freebsd-%e4%b8%8btar%e5%8a%a0%e5%af%86%e5%8e%8b%e7%bc%a9%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=799","title":{"rendered":"Linux\/FreeBSD \u4e0btar\u52a0\u5bc6\u538b\u7f29\u547d\u4ee4"},"content":{"rendered":"\n<p>\u52a0\u5bc6\u538b\u7f29<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">tar -czvf - file | openssl des3 -salt -k password -out kiccleaf.tar.gz<\/code><\/pre>\n\n\n\n<p>\u89e3\u5bc6\u89e3\u538b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">openssl des3 -d -k password -salt -in kiccleaf.tar.gz | tar zxvf -<\/code><\/pre>\n\n\n\n<p>file\uff1a\u53ef\u4ee5\u662f\u6587\u4ef6\u6216\u662f\u76ee\u5f55\uff0c\u591a\u6587\u4ef6\/\u76ee\u5f55\u7a7a\u683c\u9694\u5f00<br>password\uff1a\u9700\u8981\u8bbe\u5b9a\u7684\u5bc6\u7801<br><br><\/p>\n\n\n\n<p><strong>\u9700\u8981\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><br>\u5728\u547d\u4ee4\u884c\u76f4\u63a5\u8f93\u5165\u547d\u4ee4\u8fdb\u884c\u52a0\u5bc6\u64cd\u4f5c\uff0c\u4e00\u822c\u7cfb\u7edf\u5728\u7528\u6237\u7684\u547d\u4ee4\u5386\u53f2Linux\u3010.bash_history\u3011\/FreeBSD\u4e0b\u3010.history\u3011\u6587\u4ef6\u91cc\u9762\u4f1a\u8bb0\u5f55\u4e86\u547d\u4ee4\u884c\u4e5f\u5c31\u77e5\u9053\u4e86\u5bc6\u7801\uff0c\u6240\u4ee5\u5982\u679c\u7cfb\u7edf\u8bb0\u5f55\u4e86\u64cd\u4f5c\u7684\u547d\u4ee4\u884c\u5219\u9700\u8981\u6e05\u6389\u6d89\u53ca\u7684\u5386\u53f2\u8bb0\u5f55\u6216\u6e05\u7a7a\uff0c\u4e5f\u53ef\u4ee5\u5728\u52a0\u5bc6\u65f6\u5019\u4e0d\u8981\u4f7f\u7528 <code>-k<\/code> \u53c2\u6570\u4ee5\u53ca\u540e\u9762\u7684\u5bc6\u7801\u4e32\uff0c\u7b49\u8be2\u95ee\u65f6\u5019\u518d\u8fdb\u884c\u8f93\u5165\uff0c\u89e3\u538b\u8f93\u5165 \u5bc6\u7801\u4e32\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u6cc4\u6f0f\u5bc6\u4e32\u3002\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">\u52a0\u5bc6\u7801\u63d0\u793a\u8f93\u5165\u5bc6\u4e32\uff0c\u9700\u8981\u8f93\u5165\u4e24\u6b21\r\n[root@kiccleaf ~]# tar -czvf - kiccleaf | openssl des3 -salt -out kiccleaf.tar.gz\r\ntest.sh\r\nenter des-ede3-cbc encryption password:\r\nVerifying - enter des-ede3-cbc encryption password:\r\n\r\n\u76f4\u63a5\u89e3\u538b\u4e0d\u53ef\u4ee5\u54af\r\n[root@kiccleaf ~]# tar zxvf kiccleaf.tar.gz \r\n\r\ngzip: stdin: not in gzip format\r\ntar: Child returned status 1\r\ntar: Error is not recoverable: exiting now\r\n\r\n\u89e3\u538b\u63d0\u793a\u8f93\u5165\u5bc6\u4e32\r\n[root@kiccleaf ~]# openssl des3 -d -salt -in kiccleaf.tar.gz | tar zxvf -\r\nenter des-ede3-cbc decryption password:\r\ntest.sh<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u52a0\u5bc6\u538b\u7f29 \u89e3\u5bc6\u89e3\u538b file\uff1a\u53ef\u4ee5\u662f\u6587\u4ef6\u6216\u662f\u76ee\u5f55\uff0c&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=799\">Continue reading<span class=\"screen-reader-text\">Linux\/FreeBSD \u4e0btar\u52a0\u5bc6\u538b\u7f29\u547d\u4ee4<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":10,"footnotes":""},"categories":[6,4],"tags":[8,13,124],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux-","tag-freebsd","tag-linux","tag-tar","entry"],"views":1959,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=799"}],"version-history":[{"count":3,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":802,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions\/802"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}