{"id":1173,"date":"2016-05-13T18:47:57","date_gmt":"2016-05-13T09:47:57","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=1173"},"modified":"2021-04-05T05:20:39","modified_gmt":"2021-04-04T20:20:39","slug":"%ef%bc%92%ef%bc%93%ef%bc%9a%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%abweb%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e8%bf%bd%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=1173","title":{"rendered":"\uff11\uff12\uff1a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b5\u30fc\u30d0\u30fc\u306bweb\u30b5\u30fc\u30d0\u30fc\u3092\u8ffd\u52a0\u3059\u308b"},"content":{"rendered":"<p class=\"itemText\">\u307e\u3060apache\u306a\u3069\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4f5c\u3063\u305fWEB\u30b5\u30fc\u30d0\u30fc\u304c\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306fweb\u30b5\u30fc\u30d0\u30fc\u3067bacula\u306b\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">yum -y install bacula-client bacula-console<\/span><br \/>\n\u6b21\u306b\/etc\/bacula\/bacula-fd.conf\u306e\u8a2d\u5b9a<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">gedit \/etc\/bacula\/bacula-fd.conf<\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">Director {\r\n  Name = bacula-dir\r\n  Password = \"XXXX\"\r\n}\r\nDirector {\r\n  Name = bacula-mon\r\n  Password = \"xxxx\"\r\n  Monitor = yes\r\n}\r\nFileDaemon {\r\n  Name = web-fd\u3000     <span style=\"color: #000000;\"> \u2190 bacula-dir.conf\u306e\u540d\u524d\u306b\u5408\u308f\u305b\u308b<\/span>\r\n  FDport = 9102        # where we listen for the director\r\n  WorkingDirectory = \/var\/spool\/bacula\r\n  Pid Directory = \/var\/run\r\n  Maximum Concurrent Jobs = 20\r\n}\r\n# Send all messages except skipped files back to Director\r\nMessages {\r\n  Name = Standard\r\n  director = bacula-dir = all, !skipped, !restored\r\n}<\/span><\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\/etc\/bacula\/bconsole\u306e\u8a2d\u5b9a<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">gedit \/etc\/bacula\/bconsole.conf<\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">Director {\r\n  Name = bacula-dir\r\n  DIRport = 9101\r\n  address = 192.168.xxx.xxx\u3000\u2190\u3000director\u306e\u52d5\u3044\u3066\u3044\u308b\u30db\u30b9\u30c8\u306e\u6307\u5b9a\u3092\u3059\u308b\r\n  Password = \"xxxxx\"<\/span>\r\n<span style=\"color: #0000ff;\">}<\/span><\/code><\/pre>\n<\/div>\n<p>bacula-fd\u3092\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u304a\u304f<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">service bacula-fd start<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">chkconfig bacula-fd on<\/span><br \/>\n\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a\uff0a<br \/>\n<span style=\"color: #ff00ff;\">\u3053\u3053\u304b\u3089\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<\/span><br \/>\n\/etc\/bacula\/bacula-dir \u306bWEB\u30b5\u30fc\u30d0\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u304c\u3001\u8ffd\u52a0\u3059\u308b\u9805\u76ee\u306f<br \/>\nJob { Name = &#8220;Backup-web&#8221;<br \/>\nJob { Name = &#8220;Restore-web&#8221;<br \/>\nFileSet { Name = &#8220;Full web&#8221;<br \/>\nClient { Name = web-fd<br \/>\n\u306e \u56db\u3064\u3067\u3042\u308b\u304c\u3001\u305d\u308c\u305e\u308c\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u304b\u3089\u5bb9\u6613\u306b\u8a2d\u5b9a\u5185\u5bb9\u304c\u898b\u5f53\u304c\u3064\u304f\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u8868\u793a\u3057\u306a\u3044\u3002\u305f\u3060 FileSet \u306e\u8a2d\u5b9a\u306b\u306f\u6ce8\u610f\u306e\u4e8b\u3002\u79c1\u306e\u5834\u5408\u306f\/abcd1\u3084\/abcd2\u306f\u5225\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b\u306e\u3067 include\u306b\u8a2d\u5b9a\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002<br \/>\n\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001bcula-dir \u3092\u518d\u8d77\u52d5<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">service bacula-dir restart<\/span><br \/>\nweb\u30b5\u30fc\u30d0\u30fc\u306e\u6700\u521d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3059\u308b<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">bconsole<\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\">Connecting to Director localhost:9101\r\n1000 OK: bacula-dir Version: 5.0.0 (26 January 2010)\r\nEnter a period to cancel a command.\r\n*<span style=\"color: #008000;\">run\u3000<span style=\"color: #000000;\">\u2190 \u7dd1\u306f\u5165\u529b\u3059\u308b\u6587\u5b57<\/span><\/span>\r\nAutomatically selected Catalog: MyCatalog\r\nUsing Catalog \"MyCatalog\"\r\nA job name must be specified.\r\nThe defined Job resources are:\r\n     1: Backup-samba\r\n     2: Backup-kvm\r\n     3: Backup-web\r\n     4: BackupCatalog\r\n     5: Restore-samba\r\n     6: Restore-kvm\r\n     7: Restore-web\r\nSelect Job resource (1-7): <span style=\"color: #008000;\">3<\/span>\r\nRun Backup job\r\nJobName:  Backup-web\r\nLevel:    Incremental\r\nClient:   web-fd\r\nFileSet:  Full web\r\nPool:     File (From Job resource)\r\nStorage:  File (From Job resource)\r\nWhen:     2014-05-20 21:46:47\r\nPriority: 10\r\nOK to run? (yes\/mod\/no):<span style=\"color: #008000;\"> yes\r\n<\/span><\/span><\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u59cb\u307e\u308a\u3001\u6700\u521d\u306a\u306e\u3067\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u3060apache\u306a\u3069\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4f5c\u3063\u305fWEB\u30b5\u30fc\u30d0\u30fc\u304c\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u307e\u305a\u306fweb\u30b5\u30fc\u30d0\u30fc\u3067bacula\u306b\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb # yum -y install b &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=1173\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-1173","post","type-post","status-publish","format-standard","hentry","category-bacula"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1173"}],"version-history":[{"count":2,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1173\/revisions"}],"predecessor-version":[{"id":2195,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1173\/revisions\/2195"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}