{"id":1148,"date":"2016-05-13T16:55:47","date_gmt":"2016-05-13T07:55:47","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=1148"},"modified":"2016-05-13T17:23:08","modified_gmt":"2016-05-13T08:23:08","slug":"%ef%bc%97%ef%bc%9a%e3%83%aa%e3%82%b9%e3%83%88%e3%82%a2%e3%82%92%e8%a9%a6%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=1148","title":{"rendered":"\uff17\uff1a\u30ea\u30b9\u30c8\u30a2\u3092\u8a66\u3059"},"content":{"rendered":"<p class=\"itemText\">\u305d\u308d\u305d\u308d\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u30fc\u3082\u8caf\u307e\u3063\u3066\u6765\u305f\u306e\u3067\u30ea\u30b9\u30c8\u30a2\u3092\u305f\u3081\u3057\u307e\u3059\u3002<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">bconsole<\/span>\r\n<span style=\"color: #ff6600;\">Connecting to Director 192.168.135.60:9101\r\n1000 OK: bacula-dir Version: 5.0.0 (26 January 2010)\r\nEnter a period to cancel a command.\r\n*<\/span> <span style=\"color: #008000;\">restore<\/span>\r\n<span style=\"color: #ff6600;\">Automatically selected Catalog: MyCatalog\r\nUsing Catalog \"MyCatalog\"\r\n\r\nFirst you select one or more JobIds that contain files\r\nto be restored. You will be presented several methods\r\nof specifying the JobIds. Then you will be allowed to\r\nselect which files from those JobIds are to be restored.\r\n\r\nTo select the JobIds, you have the following choices:\r\n     1: List last 20 Jobs run\r\n     2: List Jobs where a given File is saved\r\n     3: Enter list of comma separated JobIds to select\r\n     4: Enter SQL list command\r\n     5: Select the most recent backup for a client\r\n     6: Select backup for a client before a specified time\r\n     7: Enter a list of files to restore\r\n     8: Enter a list of files to restore before a specified time\r\n     9: Find the JobIds of the most recent backup for a client\r\n    10: Find the JobIds for a backup for a client before a specified time\r\n    11: Enter a list of directories to restore for found JobIds\r\n    12: Select full restore to a specified Job date\r\n    13: Cancel\r\nSelect item:  (1-13):<\/span> <span style=\"color: #008000;\">5<\/span>\r\n<span style=\"color: #ff6600;\">Defined Clients:\r\n     1: samba-fd\r\n     2: web-fd\r\nSelect the Client (1-2):<\/span> <span style=\"color: #008000;\">2<\/span>\r\n<span style=\"color: #ff6600;\">The defined FileSet resources are:\r\n     1: Catalog\r\n     2: Full web\r\nSelect FileSet resource (1-2):<\/span> <span style=\"color: #008000;\">2<\/span>\r\n<span style=\"color: #ff6600;\">+-------+-------+----------+----------------+---------------------+------------+\r\n| JobId | Level | JobFiles | JobBytes       | StartTime           | VolumeName |\r\n+-------+-------+----------+----------------+---------------------+------------+\r\n|   214 | F     |  326,050 | 24,520,406,195 | 2013-12-03 02:16:20 | Vol-0132   |\r\n|   229 | D     |    2,409 |    103,565,858 | 2013-12-08 02:10:13 | Vol-0147   |\r\n|   232 | I     |   50,884 |    680,830,900 | 2013-12-09 02:06:08 | Vol-0150   |\r\n|   237 | I     |   86,776 |  1,018,653,845 | 2013-12-10 02:06:18 | Vol-0153   |\r\n+-------+-------+----------+----------------+---------------------+------------+\r\nYou have selected the following JobIds: 214,229,232,237\r\n\r\nBuilding directory tree for JobId(s) 214,229,232,237 ... <\/span> <\/code><\/pre>\n<\/div>\n<p>\u30b3 \u30f3\u30bd\u30fc\u30eb\u3092\u7acb\u3061\u4e0a\u3052\u3001restore\u30b3\u30de\u30f3\u30c9\u3092\u3057\u3066\u3001\u76f4\u8fd1\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u9078\u3073\uff08\uff15\uff09\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u9078\u629e\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30bb\u30c3\u30c8\u3092\u9078\u3079\u3070\u4e0a\u8a18\u306e\u3088\u3046\u306a\u8868\u793a\u306b \u306a\u308a\u307e\u3059\u3002\u6700\u521d\u306e\u30d5\u30eb\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u793a\u3059\u3088\u3046\u306b\u3001\u5727\u7e2e\u5f8c\u3067\u3082\uff12\uff14G\u3082\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u304b\u3089\u3059\u3054\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u79c1\u306e\u5834\u5408\u306f\u7d04\uff14\u6642\u9593\u4f4d\u304b\u3063\u304b\u305f\u307f\u305f\u3044\u3067 \u3059\u3002\u3053\u3053\u3092\u53c2\u7167 <span style=\"color: #ff00ff;\">\u30ea\u30b9\u30c8\u30a2\u306e\u6642\u9593\u304c\u5287\u7684\u306b\u65e9\u304f\u306a\u308b<\/span><br \/>\n\u3068\u3082\u304b\u304f<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\">386,584 files inserted into the tree.\r\n\r\nYou are now entering file selection mode where you add (mark) and\r\nremove (unmark) files to be restored. No files are initially added, unless\r\nyou used the \"all\" keyword on the command line.\r\nEnter \"done\" to leave this mode.\r\n\r\ncwd is: \/\r\n$ <span style=\"color: #008000;\">mark *<\/span>\r\n431,973 files marked.\r\n$ <span style=\"color: #008000;\">done<\/span>\r\nBootstrap records written to \/var\/spool\/bacula\/bacula-dir.restore.1.bsr\r\n\r\nThe job will require the following\r\n   Volume(s)                 Storage(s)                SD Device(s)\r\n===========================================================================\r\n   \r\n    Vol-0132                  File                      FileStorage              \r\n    Vol-0147                  File                      FileStorage              \r\n    Vol-0150                  File                      FileStorage              \r\n    Vol-0153                  File                      FileStorage              \r\n\r\nVolumes marked with \"*\" are online.\r\n\r\n\r\n431,973 files selected to be restored.\r\n\r\nThe defined Restore Job resources are:\r\n     1: Restore-samba\r\n     2: Restore-web\r\nSelect Restore Job (1-2):<\/span> <span style=\"color: #008000;\">2<\/span>\r\n<span style=\"color: #ff6600;\">Run Restore job\r\nJobName:         Restore-web\r\nBootstrap:       \/var\/spool\/bacula\/bacula-dir.restore.1.bsr\r\nWhere:           \/Backup\/BackupTemp\/web\r\nReplace:         always\r\nFileSet:         Full web\r\nBackup Client:   web-fd\r\nRestore Client:  web-fd\r\nStorage:         File\r\nWhen:            2013-12-11 19:43:33\r\nCatalog:         MyCatalog\r\nPriority:        10\r\nPlugin Options:  *None*\r\nOK to run? (yes\/mod\/no): <span style=\"color: #008000;\">yes<\/span>\r\nJob queued. JobId=239\r\n*\r\n11-12\u6708 19:43 bacula-dir JobId 239: Start Restore Job Restore-web.2013-12-11_19.43.40_04\r\n11-12\u6708 19:43 bacula-dir JobId 239: Using Device \"FileStorage\"\r\n11-12\u6708 19:43 bacula-sd JobId 239: Ready to read from volume \"Vol-0132\" on device \"FileStorage\" (\/Backup).\r\n11-12\u6708 19:43 bacula-sd JobId 239: Forward spacing Volume \"Vol-0132\" to file:block 0:204.<\/span><\/code><\/pre>\n<\/div>\n<p>Mark * \u3067\u5168\u30d5\u30a1\u30a4\u30eb\u306b\u5370\u3092\u4ed8\u3051\u3001done\u3067\u30de\u30fc\u30af\u306e\u4f5c\u696d\u3092\u7d42\u308f\u308c\u305b\u3001\uff12 \u3067\u30ea\u30b9\u30c8\u30a2\u3059\u308bJOB\uff08\u30db\u30b9\u30c8\u306e\u6307\u5b9a\uff09\u3057\u3001yes \u3067\u30ea\u30b9\u30c8\u30a2\u306e\u5b9f\u884c\u3092\u3057\u307e\u3059\u3002<br \/>\n\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u30e1\u30fc\u30eb\u304c\u7740\u305f\u3002\u5185\u5bb9\u306f\u4e0b\u8a18\u306e\u901a\u308a<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\">11-12\u6708 20:18 bacula-sd JobId 239: End of Volume at file 5 on device \"FileStorage\" (\/Backup), Volume \"Vol-0132\"\r\n11-12\u6708 20:18 bacula-sd JobId 239: Ready to read from volume \"Vol-0147\" on device \"FileStorage\" (\/Backup).\r\n11-12\u6708 20:18 bacula-sd JobId 239: Forward spacing Volume \"Vol-0147\" to file:block 0:204.\r\n11-12\u6708 20:18 bacula-sd JobId 239: End of Volume at file 0 on device \"FileStorage\" (\/Backup), Volume \"Vol-0147\"\r\n11-12\u6708 20:18 bacula-sd JobId 239: Ready to read from volume \"Vol-0150\" on device \"FileStorage\" (\/Backup).\r\n11-12\u6708 20:18 bacula-sd JobId 239: Forward spacing Volume \"Vol-0150\" to file:block 0:204.\r\n11-12\u6708 20:19 bacula-sd JobId 239: End of Volume at file 0 on device \"FileStorage\" (\/Backup), Volume \"Vol-0150\"\r\n11-12\u6708 20:19 bacula-sd JobId 239: Ready to read from volume \"Vol-0153\" on device \"FileStorage\" (\/Backup).\r\n11-12\u6708 20:19 bacula-sd JobId 239: Forward spacing Volume \"Vol-0153\" to file:block 0:204.\r\n11-12\u6708 20:21 bacula-sd JobId 239: End of Volume at file 0 on device \"FileStorage\" (\/Backup), Volume \"Vol-0153\"\r\n11-12\u6708 20:21 bacula-sd JobId 239: End of all volumes.\r\n11-12\u6708 20:21 bacula-dir JobId 239: Bacula bacula-dir 5.0.0 (26Jan10): 11-12\u6708-2013 20:21:30\r\n  Build OS:               x86_64-redhat-linux-gnu redhat \r\n  JobId:                  239\r\n  Job:                    Restore-web.2013-12-11_19.43.40_04\r\n  Restore Client:         web-fd\r\n  Start time:             11-12\u6708-2013 19:43:42\r\n  End time:               11-12\u6708-2013 20:21:30\r\n  Files Expected:         431,973\r\n  Files Restored:         431,973\r\n  Bytes Restored:         30,557,020,587\r\n  Rate:                   13473.1 KB\/s\r\n  FD Errors:              0\r\n  FD termination status:  OK\r\n  SD termination status:  OK\r\n  Termination:            Restore OK\r\n\r\n11-12\u6708 20:21 bacula-dir JobId 239: Begin pruning Jobs older than 43 years 5 months 25 days 11 hours 21 mins 30 sec.\r\n11-12\u6708 20:21 bacula-dir JobId 239: No Jobs found to prune.\r\n11-12\u6708 20:21 bacula-dir JobId 239: Begin pruning Jobs.\r\n11-12\u6708 20:21 bacula-dir JobId 239: Pruned Files from 4 Jobs for client web-fd from catalog.\r\n11-12\u6708 20:21 bacula-dir JobId 239: End auto prune.<\/span><\/code><\/pre>\n<\/div>\n<p>\uff11\uff19\uff1a\uff14\uff13\u306b\u30ea\u30b9\u30c8\u30a2\u304c\u59cb\u307e\u308a\u3001\uff12\uff10\uff1a\uff12\uff11\u306b\u7d42\u308f\u308a\u3001\u7d04\uff13\uff10GB\u3092\u30ea\u30b9\u30c8\u30a2\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308d\u305d\u308d\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u30fc\u3082\u8caf\u307e\u3063\u3066\u6765\u305f\u306e\u3067\u30ea\u30b9\u30c8\u30a2\u3092\u305f\u3081\u3057\u307e\u3059\u3002 # bconsole Connecting to Director 192.168.135.60:9101 1000 OK: bacula-dir V &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=1148\">\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,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-1148","post","type-post","status-publish","format-standard","hentry","category-bacula"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1148","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=1148"}],"version-history":[{"count":3,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1148\/revisions"}],"predecessor-version":[{"id":1163,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1148\/revisions\/1163"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}