{"id":210,"date":"2017-01-22T16:15:08","date_gmt":"2017-01-22T07:15:08","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=210"},"modified":"2017-01-22T18:53:39","modified_gmt":"2017-01-22T09:53:39","slug":"linux-%eb%b0%b1%ec%97%85backup","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=210","title":{"rendered":"Linux \ubc31\uc5c5(Backup)"},"content":{"rendered":"<p>\ucd9c\ucc98 :\u00a0<a href=\"https:\/\/kldp.org\/node\/84594\" target=\"_blank\">https:\/\/kldp.org\/node\/84594<\/a><\/p>\n<p>===========\uc555\ucd95=========================<\/p>\n<p>\ubc29\ubc95\uc740 \uc544\ub798\uc5d0 \uc21c\uc11c\ub300\ub85c \uc791\uc131\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">sudo su\r\ncd \/\r\ntar cvpzf backup.tgz --exclude=\/proc --exclude=\/lost+found --exclude=\/backup.tgz --exclude=\/mnt --exclude=\/media --exclude=\/sys \/<\/pre>\n<p>\uadf8\ub7ec\ub2c8\uae4c \ub8e8\ud2b8 \uad8c\ud55c\uc73c\ub85c \ubc14\uafb8\uace0 \ub098\uc11c \ucd5c\uc0c1\uc704 \ub9ac\uc2a4\ud2b8\ub85c \uc62c\ub77c\uac00\uc11c tar \uba85\ub839\uc5b4\ub97c \uc801\uc6a9\ud558\ub294\ub370<br \/>\n\uc555\ucd95 \ud30c\uc77c\uc774\ub984\uc740 backup.tgz\ub85c \ud558\uace0 \uc555\ucd95\uc2dc \/proc , \/lost+found , \/mnt , \/sys, \/media \ub294 \uc81c\uc678\ud558\uc790\ub294 \uac81\ub2c8\ub2e4.<br \/>\n\uac01\uc790 \uc0ac\uc815\uc5d0 \ub9de\ucdb0\uc11c \uc81c\uc678\ud560 \ub514\ub809\ud1a0\ub9ac\ub294 \ub354 \ucd94\uac00\ud558\uc2dc\uba74 \ub418\uaca0\uc8e0.<\/p>\n<p>\uadf8\ub7f0 \ud6c4\uc5d0 backup.tgz\ud30c\uc77c\uc744 dvd\ub85c \uad7d\ub4e0 \ub79c\uc73c\ub85c \ub2e4\ub978 \ucef4\ud130\ub85c \uc62e\uae30\uc2dc\ub4e0 \ud558\uc2dc\uba74 \ub418\uaca0\uc8e0.<\/p>\n<p>\uc555\ucd95 \uc885\ub8cc\ud6c4 \ub098\uc624\ub294 &#8216;tar: Error exit delayed from previous errors&#8217;\ub780 \uba54\uc138\uc9c0\ub294 \uc329\uae4c\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br \/>\n\uc555\ucd95\ub960\uc744 \uc880\ub354 \ub192\uc774\uc790\uba74 Bzip2\ub098 7zip\uc73c\ub85c \uc555\ucd95\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br \/>\nBzip2\ub85c \uc555\ucd95\ud560 \uacbd\uc6b0 \uc544\ub798 \uba85\ub839\uc5b4\ub97c \uc4f0\uc2dc\uba74 \ub429\ub2c8\ub2e4. (cvpzf\uc5d0\uc11c cvpjf\ub85c \uc635\uc158\uc744 \ubc14\uafd4\uc57c\ud569\ub2c8\ub2e4.)<\/p>\n<pre class=\"lang:sh decode:true \">tar cvpjf backup.tar.bz2 --exclude=\/proc --exclude=\/lost+found --exclude=\/backup.tar.bz2 --exclude=\/mnt --exclude=\/media --exclude=\/sys \/<\/pre>\n<p>==============\ubcf5\uc6d0===================<br \/>\nbackup.tgz\ub294 \ub8e8\ud2b8\ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\uc5b4\uc57c\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">sudo su<\/pre>\n<p>\uadf8\ub9ac\uace0 \uc544\ub798 \uba85\ub839\uc5b4\ub97c \uba39\uc5ec\uc8fc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">tar xvpzf backup.tgz -C \/<\/pre>\n<p>Bz2\ub85c \uc555\ucd95\ud55c \uacbd\uc6b0<\/p>\n<pre class=\"lang:sh decode:true\">tar xvpjf backup.tar.bz2 -C \/\r\n<\/pre>\n<p>\uadf8\ub7ec\uace0 \ub098\uc11c \uc555\ucd95\uc2dc \uc81c\uc678\ud588\ub358 \ud3f4\ub354\ub294 \ub530\ub85c \ub9cc\ub4e4\uc5b4 \uc8fc\uba74\ub429\ub2c8\ub2e4<\/p>\n<pre class=\"lang:sh decode:true  \">mkdir sys\r\nmkdir proc\r\nmkdir lost+found\r\nmkdir mnt\r\nmkdir sys\r\nmkdir media\r\n~~...<\/pre>\n<p>=====================================<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucd9c\ucc98 :\u00a0https:\/\/kldp.org\/node\/84594 ===========\uc555\ucd95========================= \ubc29\ubc95\uc740 \uc544\ub798\uc5d0 \uc21c\uc11c\ub300\ub85c \uc791\uc131\ud588\uc2b5\ub2c8\ub2e4. sudo su cd \/ tar cvpzf backup.tgz &#8211;exclude=\/proc &#8211;exclude=\/lost+found &#8211;exclude=\/backup.tgz &#8211;exclude=\/mnt &#8211;exclude=\/media &#8211;exclude=\/sys \/ \uadf8\ub7ec\ub2c8\uae4c \ub8e8\ud2b8 \uad8c\ud55c\uc73c\ub85c \ubc14\uafb8\uace0 \ub098\uc11c \ucd5c\uc0c1\uc704 \ub9ac\uc2a4\ud2b8\ub85c \uc62c\ub77c\uac00\uc11c tar \uba85\ub839\uc5b4\ub97c \uc801\uc6a9\ud558\ub294\ub370 \uc555\ucd95 \ud30c\uc77c\uc774\ub984\uc740 backup.tgz\ub85c \ud558\uace0 \uc555\ucd95\uc2dc \/proc , \/lost+found , \/mnt , \/sys, \/media \ub294 \uc81c\uc678\ud558\uc790\ub294 \uac81\ub2c8\ub2e4. \uac01\uc790 \uc0ac\uc815\uc5d0 \ub9de\ucdb0\uc11c \uc81c\uc678\ud560 \ub514\ub809\ud1a0\ub9ac\ub294 \ub354 \ucd94\uac00\ud558\uc2dc\uba74 \ub418\uaca0\uc8e0. \uadf8\ub7f0 \ud6c4\uc5d0 backup.tgz\ud30c\uc77c\uc744 dvd\ub85c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-linux","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":3,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}