{"id":1140,"date":"2016-05-13T16:25:59","date_gmt":"2016-05-13T07:25:59","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=1140"},"modified":"2022-05-14T03:26:17","modified_gmt":"2022-05-13T18:26:17","slug":"%ef%bc%93%ef%bc%9abacula-dir%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=1140","title":{"rendered":"\uff13\uff1abacula-dir\u306e\u8a2d\u5b9a"},"content":{"rendered":"<div class=\"itemBody\">\n<p class=\"itemText\">\u307e\u305a\u306f\/etc\/bacula\/bacula-dir.conf\u306e\u8a2d\u5b9a\uff08\u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\uff09\u3002<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"http:\/\/lunatear.net\/archives\/001067.html\" target=\"_blank\" rel=\"noopener\">http:\/\/lunatear.net\/archives\/001067.html<\/a><\/span> \u3082\u53c2\u8003\u306b\u3057\u307e\u3057\u305f<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">Director {                      # define myself\r\n  Name = bacula-dir\r\n  DIRport = 9101                # where we listen for UA connections\r\n  QueryFile = \"\/usr\/libexec\/bacula\/query.sql\"\u3000\u2190\u3000\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u5b58\u5728\u3057\u306a\u3044\u304c\u3001\u554f\u984c\u7121\u3044\u898b\u305f\u3044\r\n  WorkingDirectory = \"\/var\/spool\/bacula\"\r\n  PidDirectory = \"\/var\/run\"\r\n  Maximum Concurrent Jobs = 1\r\n  Password = \"xxxxxx\"\u3000<span style=\"color: #000000;\">\u2190\u3000database bacula\u306b\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/span>\r\n  Messages = Daemon\r\n}\r\n\r\n# Define the main nightly save backup job\r\n#   By default, this job will back up to disk in \/tmp\r\nJob {\r\n  Name = \"Backup-samba\"\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  Client = samba-fd\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  FileSet = \"Full samba\"\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  JobDefs = \"DefaultJob\"\u3000<span style=\"color: #000000;\">\u2190 \u3053\u306eJob\u306e\u5b9a\u7fa9\u306fDefaultJob\u306b\u5b9a\u7fa9\u3057\u3066\u3042\u308b<\/span>\r\n}\r\n\r\nJob {\r\n  Name = \"Backup-web\"\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  Client = web-fd\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  FileSet = \"Full web\"\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  JobDefs = \"DefaultJob\"\u3000<span style=\"color: #000000;\">\u2190 samba-fd\u3068\u540c\u3058JobDefs\u3092\u4f7f\u3046\u3002\u3064\u307e\u308a\u5171\u901a\u3059\u308b\u90e8\u5206\u3092\u307e\u3068\u3081\u3066DefaultJob\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b<\/span>\r\n}\r\n\r\nJobDefs {\r\n  Name = \"DefaultJob\"<span style=\"color: #000000;\">\u3000\u2190 \u4e0a\u306e\u4e8c\u3064\u306e\u5b9a\u7fa9\u3092\u3059\u308b<\/span>\r\n  Type = Backup<span style=\"color: #000000;\">\u3000\u2190 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3059\u308b<\/span>\r\n  Level = Incremental<span style=\"color: #000000;\">\u3000\u2190 \u5897\u5206\u306e\u6307\u5b9a<\/span>\r\n  Schedule = \"WeeklyCycle\"\u3000<span style=\"color: #000000;\">\u2190 \u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306fWeeklyCycle\u3092\u4f7f\u3046<\/span>\r\n  Storage = File\u3000<span style=\"color: #000000;\">\u2190 \u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30bf\u30a4\u30d7\u306fFile\u3067\u3042\u308b\u3002\u3064\u307e\u308a\u30c7\u30a3\u30b9\u30af\u306b\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/span>\r\n  Messages = Standard\u3000\u2190 <span style=\"color: #000000;\">e-mail\u306e\u5185\u5bb9\u306fStandard\u306b\u5b9a\u7fa9\u3059\u308b<\/span>\r\n  Pool = File\u3000<span style=\"color: #000000;\">\u2190 Pool\u306ffile<\/span>\r\n  Priority = 10\u3000<span style=\"color: #000000;\">\u2190 \u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u306f\u6570\u304c\u5c11\u306a\u3044\u307b\u3069\u9ad8\u3044<\/span>\r\n  Write Bootstrap = \"\/var\/spool\/bacula\/%c.bsr\"\u3000<span style=\"color: #000000;\">\u2190 Bootstrup\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u9332\u3059\u308b\u30d1\u30b9\u3002\u4e0b\u8a18\u53c2\u7167\r\n}<\/span>\r\n\r\n# Backup the catalog database (after the nightly save)\r\nJob {\r\n  Name = \"Catalog-samba\"\u3000<span style=\"color: #000000;\">\u2190\u540d\u524d\u306e\u5b9a\u7fa9<\/span>\r\n  Client = samba-fd\u3000<span style=\"color: #000000;\">\u2190client\u306fsamba-fd\u3092\u4f7f\u3046<\/span>\r\n  JobDefs = \"CatalogJob\"\u3000<span style=\"color: #000000;\">\u2190job\u306e\u5b9a\u7fa9\u306fCatalogJob\u306b\u66f8\u304f<\/span>\r\n}\r\n\r\nJobDefs {\r\n  Name = \"CatalogJob\"\r\n  Type = Backup\u3000<span style=\"color: #000000;\">\u2190 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3059\u308b<\/span>\r\n  Level = Full\u3000<span style=\"color: #000000;\">\u2190 \u3044\u3064\u3082full\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308b<\/span>\r\n  FileSet= \"Catalog\"\u3000<span style=\"color: #000000;\">\u2190 FileSet\u3068\u3057\u3066\u3001Catalog\u306b\u5b9a\u7fa9\u3059\u308b<\/span>\r\n  Schedule = \"WeeklyCycleAfterBackup\"\u3000<span style=\"color: #000000;\">\u2190 \u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306fWeeklyCycleAfterBackup\u3092\u4f7f\u3046<\/span>\r\n  Storage = File\u3000<span style=\"color: #000000;\">\u2190 \u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30bf\u30a4\u30d7\u306fFile\u3067\u3042\u308b\u3002\u3064\u307e\u308a\u30c7\u30a3\u30b9\u30af\u306b\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/span>\r\n  Messages = Standard\u3000<span style=\"color: #000000;\">\u2190 message\u306fStandard\u3092\u4f7f\u3046<\/span>\r\n  Pool = File\r\n  # This creates an ASCII copy of the catalog\r\n  # Arguments to make_catalog_backup.pl are:\r\n  #  make_catalog_backup.pl &lt;catalog-name&gt;\r\n  RunBeforeJob = \"\/usr\/libexec\/bacula\/make_catalog_backup.pl MyCatalog\"\r\n  # This deletes the copy of the catalog\r\n#  RunAfterJob  = \"\/usr\/libexec\/bacula\/delete_catalog_backup\"\r\n  Write Bootstrap = \"\/var\/spool\/bacula\/%n.bsr\"\u3000<span style=\"color: #000000;\">\u2190 \u4e0b\u8a18\u53c2\u7167<\/span>\r\n  Priority = 11\r\n}\r\n\r\n# Standard Restore template, to be changed by Console program\r\n#  Only one such job is needed for all Jobs\/Clients\/Storage ...\r\n#\r\nJob {\r\n  Name = \"Restore-samba\"\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  Type = Restore\u3000<span style=\"color: #000000;\">\u2190 \u30ea\u30b9\u30c8\u30a2\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b<\/span>\r\n  Client= samba-fd\u3000<span style=\"color: #000000;\">\u2190 \u79c1\u306f\u4e8c\u3064\u306e\u30db\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u306e\u3067\u30db\u30b9\u30c8\u6bce\u306b\u8a2d\u5b9a<\/span>\r\n  FileSet= \"Full samba\"                  \r\n  Storage = File\r\n  Pool = Default\r\n  Messages = Standard\r\n  Where = \/Backup\/Restores\/samba\u3000<span style=\"color: #000000;\">\u2190 \u30ea\u30b9\u30c8\u30a2\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u6307\u5b9a<\/span>\r\n}\r\n\r\nJob {\r\n  Name = \"Restore-web\"\r\n  Type = Restore\r\n  Client= web-fd\r\n  FileSet= \"Full web\"                  \r\n  Storage = File\r\n  Pool = Default\r\n  Messages = Standard\r\n  Where = \/Backup\/Restores\/web\u3000<span style=\"color: #000000;\">\u2190 \u30ea\u30b9\u30c8\u30a2\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u6307\u5b9a<\/span>\r\n}\r\n\r\n# List of files to be backed up\r\nFileSet {\r\n  Name = \"Full samba\"\u3000<span style=\"color: #000000;\">\u2190 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u308bFileSet\u306e\u540d\u524d\r\n  <span style=\"color: #0000ff;\">Include {<\/span><\/span>\r\n    Options {\r\n      signature = MD5\r\n      Compression = GZIP\u3000<span style=\"color: #000000;\">\u2190 GZip\u5727\u7e2e\u3092\u4f7f\u3063\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b<\/span>\r\n    }\r\n    File = \/\r\n    File = \/Data\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a<\/span>\r\n    File = \/Download\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a<\/span>\r\n  }\r\n  Exclude {\u3000<span style=\"color: #000000;\">\u2190 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u304f\u306a\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3092\u3053\u308c\u4ee5\u4e0b\u306b\u5165\u308c\u308b<\/span>\r\n    File = \/Backup\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u304c\u5ff5\u306e\u70ba<\/span>\r\n    File = \/var\/spool\/bacula\u3000<span style=\"color: #000000;\">\u2190 default\u3067bacula\u304c\u4f7f\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001\u79c1\u306f\u5909\u66f4\u3057\u3066\u3044\u308b\u306e\u3067\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3088\u3044<\/span>\r\n    File = \/tmp\u3000<span style=\"color: #000000;\">\u2190 \u9664\u5916\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u6307\u5b9a\u3001\u6700\u5f8c\u306b \/\u3000\u3092\u4ed8\u3051\u3066\u306f\u3044\u3051\u306a\u3044<\/span>\r\n    File = \/proc\r\n    File = .journal\u3000<span style=\"color: #000000;\">\u2190 \u9664\u5916\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a\u3001*.journal* \u3068\u8a00\u3046\u610f\u5473\u3089\u3057\u3044<\/span>\r\n    File = .fsck\r\n    File = .lock\r\n  }\r\n}\r\n\r\nFileSet {\r\n  Name = \"Full web\"\r\n  Include {\r\n    Options {\r\n      signature = MD5\r\n      Compression = GZIP\r\n    }\r\n    File = \/\r\n    File = \/Maildata\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a<\/span>\r\n    File = \/webdata\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a<\/span>\r\n    File = \/Davdata\u3000<span style=\"color: #000000;\">\u2190 \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u306e\u3067\u6307\u5b9a\r\n <span style=\"color: #0000ff;\"> }<\/span><\/span>\r\n  Exclude {\r\n    File = \/var\/spool\/bacula\r\n    File = \/tmp\r\n    File = \/proc\r\n    File = .journal\r\n    File = .fsck\r\n    File = .lock\r\n  }\r\n}\r\n\r\n# This is the backup of the catalog\r\nFileSet {\r\n  Name = \"Catalog\"\r\n  Include {\r\n    Options {\r\n      signature = MD5\r\n    }\r\n    File = \"\/var\/spool\/bacula\/bacula.sql\"\u3000<span style=\"color: #000000;\">\u2190 \u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u3044\u304c\u554f\u984c\u7121\u3044\u307f\u305f\u3044<\/span>\r\n  }\r\n}\r\n\r\n# When to do the backups, full backup on first sunday of the month,\r\n#  differential (i.e. incremental since full) every other sunday,\r\n#  and incremental backups other days\r\nSchedule {\r\n  Name = \"WeeklyCycle\"\r\n  Run = Full 1st sun at 2:05\r\n  Run = Differential 2nd-5th sun at 2:05\r\n  Run = Incremental mon-sat at 2:05\r\n}\r\n\r\n# This schedule does the catalog. It starts after the WeeklyCycle\r\nSchedule {\u3000<span style=\"color: #000000;\">\u2190 \u3053\u306e\u6307\u5b9a\u306f\u30ab\u30bf\u30ed\u30b0\u306e\u5206\u3001<\/span>\r\n  Name = \"WeeklyCycleAfterBackup\"\r\n  Run = Full sun-sat at 2:10\r\n\u3000# 2:10\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u304c\u3001\u3053\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046CatalogJob\u306e\u5b9a\u7fa9\u306bPriority = 11\u304c\u3042\u308b\u306e\u3067\u3001\r\n\u3000# \u5404\u30db\u30b9\u30c8\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u7d42\u308f\u3063\u3066\u304b\u3089\u59cb\u307e\u308b\r\n}\r\n\r\n# Client (File Services) to backup\r\nClient {\r\n  Name = samba-fd\r\n  Address = 192.168.xxx.xxx\u3000<span style=\"color: #000000;\">\u2190 \u3053\u306e\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u81ea\u5206\u306eIP\u3092\u6307\u5b9a<\/span>\r\n  FDPort = 9102\r\n  Catalog = MyCatalog\r\n  Password = \"xxxxxx\"              # password for FileDaemon\r\n  File Retention = 62 days         # \u30ab\u30bf\u30ed\u30b0DB\u304b\u3089\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u304c\u524a\u9664\u3055\u308c\u308b\u307e\u3067\u306e\u671f\u9593\r\n  Job Retention = 3 months         # \u30ab\u30bf\u30ed\u30b0DB\u304b\u3089\u30b8\u30e7\u30d6\u306e\u8a18\u9332\u304c\u6d88\u3048\u308b\u307e\u3067\u306e\u671f\u9593\r\n  AutoPrune = yes                  # Prune expired Jobs\/Files\r\n}\r\n\r\nClient {\r\n  Name = web-fd\r\n  Address = 192.168.xxx.xxx\u3000<span style=\"color: #000000;\">\u2190 \u30d0\u30c3\u30af\u3055\u308c\u308b\u3082\u3046\u4e00\u3064\u306e\u30db\u30b9\u30c8\u306eIP<\/span>\r\n  FDPort = 9102\r\n  Catalog = MyCatalog\r\n  Password = \"xxxxxx\"              # password for FileDaemon\r\n  File Retention = 62 days         # \u30ab\u30bf\u30ed\u30b0DB\u304b\u3089\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u304c\u524a\u9664\u3055\u308c\u308b\u307e\u3067\u306e\u671f\u9593\r\n  Job Retention = 3 months         # \u30ab\u30bf\u30ed\u30b0DB\u304b\u3089\u30b8\u30e7\u30d6\u306e\u8a18\u9332\u304c\u6d88\u3048\u308b\u307e\u3067\u306e\u671f\u9593\r\n  AutoPrune = yes                  # Prune expired Jobs\/Files\r\n}\r\n\r\n# Definition of file storage device\r\nStorage {\r\n  Name = File\r\n# Do not use \"localhost\" here    \r\n  Address = 192.168.xxx.xxx\u3000<span style=\"color: #000000;\">\u2190 \u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30db\u30b9\u30c8\u3064\u307e\u308a\u81ea\u5206\u306eIP\u3001\u5fc5\u305aIP\u3067\u6307\u5b9a<\/span>\r\n  SDPort = 9103\r\n  Password = \"xxxxxx\"\r\n  Device = FileStorage\r\n  Media Type = File\r\n}\r\n\r\n# Definition of DVD storage device\r\n#Storage {\r\n#  Name = \"DVD\"\r\n#  Do not use \"localhost\" here\r\n#  Address = storage.example.com     # N.B. Use a fully qualified name here\r\n#  SDPort = 9103\r\n#  Password = \"@@SD_PASSWORD@@\"\r\n#  Device = \"DVD Writer\"\r\n#  MediaType = \"DVD\"\r\n#}\r\n\r\n# Generic catalog service\r\nCatalog {\r\n  Name = MyCatalog\r\n  dbname = \"bacula\"; dbuser = \"bacula\"; dbpassword = \"xxxxx\"\r\n}\r\n\r\n# Reasonable message delivery -- send most everything to email address\r\n#  and to the console\r\nMessages {\r\n  Name = Standard\r\n# NOTE! If you send to two email or more email addresses, you will need\r\n#  to replace the %r in the from field (-f part) with a single valid\r\n#  email address in both the mailcommand and the operatorcommand.\r\n#  What this does is, it sets the email address that emails would display\r\n#  in the FROM field, which is by default the same email as they're being\r\n#  sent to.  However, if you send email to more than one address, then\r\n#  you'll have to set the FROM address manually, to a single address. \r\n#  for example, a 'no-reply@mydomain.com', is better since that tends to\r\n#  tell (most) people that its coming from an automated source.\r\n  mailcommand = \"\/usr\/sbin\/bsmtp -h localhost -f \\\"\\(Bacula\\) \\&lt;%r\\&gt;\\\" -s \\\"Bacula: %t %e of %c %l\\\" %r\"\r\n  operatorcommand = \"\/usr\/sbin\/bsmtp -h localhost -f \\\"\\(Bacula\\) \\&lt;%r\\&gt;\\\" -s \\\"Bacula: Intervention needed for %j\\\" %r\"\r\n  mail = xxxxx@asahi.email.ne.jp = all, !skipped\u3000<span style=\"color: #000000;\">\u2190 \u30e1\u30fc\u30eb\u3092\u9001\u308b\u30e1\u30a2\u30c9\u306e\u6307\u5b9a<\/span>\r\n  operator = xxxxx@asahi.email.ne.jp = mount\u3000<span style=\"color: #000000;\">\u2190 \u30e1\u30fc\u30eb\u3092\u9001\u308b\u30e1\u30a2\u30c9\u306e\u6307\u5b9a<\/span>\r\n  console = all, !skipped, !saved\r\n# WARNING! the following will create a file that you must cycle from\r\n#          time to time as it will grow indefinitely. However, it will\r\n#          also keep all your messages if they scroll off the console.\r\n  append = \"\/var\/spool\/bacula\/log\" = all, !skipped\r\n  catalog = all\r\n}\r\n\r\n#\r\n# Message delivery for daemon messages (no job).\r\nMessages {\r\n  Name = Daemon\r\n  mailcommand = \"\/usr\/sbin\/bsmtp -h localhost -f \\\"\\(Bacula\\) \\&lt;%r\\&gt;\\\" -s \\\"Bacula daemon message\\\" %r\"\r\n  mail = xxxx@asahi.email.ne.jp = all, !skipped            \r\n  console = all, !skipped, !saved\r\n  append = \"\/var\/log\/bacula.log\" = all, !skipped\r\n}\r\n\r\n# Default pool definition\r\nPool {\r\n  Name = Default\r\n  Pool Type = Backup\r\n  Maximum Volume Jobs = 1\t<span style=\"color: #ff00ff;\"># \u3053\u308c\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u540c\u4e00\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3057\u5dee\u5206\u3084\u5897\u5206\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u4e00\u3064\u306b\u306a\u308b<\/span>\r\n  Recycle = yes\t\t\t# Bacula can automatically recycle Volumes\r\n  AutoPrune = yes\t\t# Prune expired volumes\r\n  Volume Retention = 3 months\t# \uff13\u30f6\u6708\r\n}\r\n\r\n# File Pool definition\r\nPool {\r\n  Name = File\r\n  Pool Type = Backup\r\n  Maximum Volume Jobs = 1\t# \u3053\u308c\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u540c\u4e00\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3057\u5dee\u5206\u3084\u5897\u5206\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u4e00\u3064\u306b\u306a\u308b\r\n  Recycle = yes\t\t\t# Bacula can automatically recycle Volumes\r\n  AutoPrune = yes\t\t# Prune expired volumes\r\n  Volume Retention = 3 months\t# \uff13\u30f6\u6708\r\n  Maximum Volume Bytes = 50G\t# Limit Volume size to something reasonable\r\n  Maximum Volumes = 200\t\t# Limit number of Volumes in Pool\r\n  Label Format = \"Vol-\"\r\n}\r\n\r\n# Scratch pool definition\r\n# \u3053\u306e\u5b9a\u7fa9\u3092\u4f7f\u3063\u3066\u3044\u308b\u3082\u306e\u306f\u7121\u3044\u304c\u3001default\u3067\u5b58\u5728\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u6b8b\u3057\u3066\u3042\u308b\u3002\u591a\u5206\u7121\u304f\u3066\u3082OK\r\nPool {\r\n  Name = Scratch\r\n  Pool Type = Backup\r\n}\r\n\r\n# Restricted console used by tray-monitor to get the status of the director\r\n#\r\nConsole {\r\n  Name = bacula-mon\r\n  Password = \"xxxxxx\"\r\n  CommandACL = status, .status<\/span>\r\n<span style=\"color: #0000ff;\">}<\/span><\/code><\/pre>\n<\/div>\n<p>Write Bootstrap\u306b\u3042\u308b%c.bsr\u306fclient\u306e\u540d\u524d\u306b\u5c55\u958b\u3055\u308c\u308b\u3002\u3053\u306e\u5834\u5408\u306fsamba-fd.bsr\u3068web-fd.bsr\u3002%n.bsr\u306f\u3053\u306eJebDefs\u3092\u4f7f\u3063\u3066\u3044\u308bjob\u306e\u540d\u524d\u306b\u5909\u63db\u3055\u308c\u308b\u3002\u3053\u306e\u5834\u5408\u306fCatalog-samba.bsr\u3002<br \/>\n\u5404\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9baclua\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3057\u304b\u767b\u9332\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u5168\u90e8\u306b\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\n\u79c1\u306f\u5f8c\u3067\u51fa\u3066\u304f\u308bbacula-sd.conf\u306eDevice{ \u3067Archive Device \u3067\/Backup\uff08\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u30c7\u30fc\u30bf\u30fc\u3092\u4fdd\u5b58\u3059\u308b\u5834\u6240\uff09\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u304c\u3001\u7269\u7406\u7684\u306b\u72ec\u7acb\u3057\u305fHDD\u306b\u3059\u308b\u4e8b\u3001\u307e\u305f\u3082\u3061\u308d\u3093\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5bfe\u8c61\u306b\u306f\u5165\u308c\u306a\u3044\u3002<br \/>\nSchedule { Name = &#8220;WeeklyCycle&#8221;\u306f\u3001\u3053\u308c\u3067\u6bce\u6708\u6700\u521d\u306e\u65e5\u66dc\u65e5\u306b\u30d5\u30eb\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u65e5\u66dc\u65e5\u306b\u5dee\u5206\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u65e5\u3067\u306f\u5897\u5206\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3059\u308b\u3068\u8a00\u3046\u8a2d\u5b9a\u3002<br \/>\nSchedule {\u3000\u306e Name = &#8220;WeeklyCycleAfterBackup&#8221;\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u884c\u308f\u308c\u305f\u3089\u3001\u305d\u306e\u5f8c\u306b\u30ab\u30bf\u30ed\u30b0\u3092\u4f5c\u308b\u305f\u3081\u306b\u3053\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u3002JobDefs{ \u306eCatalogJob\u306e\u6240\u306b Priority = 11 \u304c\u3042\u308b\u306e\u3067\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u7d42\u308f\u3063\u3066\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3059\u308b\u3002<br \/>\n\u30ea\u30b9\u30c8\u30a2\u6642\u306b\u4fdd\u5b58\u3055\u308c\u308bDirectory\u306f\uff08\/Backup\/Restores\/samba\u306a\u3069\uff09\u4f5c\u3089\u306a\u304f\u3066\u3082\u81ea\u52d5\u3067\u4f5c\u3063\u3066\u304f\u308c\u308b\u69d8\u3060<\/p>\n<\/div>\n<div class=\"itemFoot\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u306f\/etc\/bacula\/bacula-dir.conf\u306e\u8a2d\u5b9a\uff08\u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\uff09\u3002http:\/\/lunatear.net\/archives\/001067.html \u3082\u53c2\u8003\u306b\u3057\u307e\u3057\u305f Director { # def &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=1140\">\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-1140","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\/1140","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=1140"}],"version-history":[{"count":3,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions"}],"predecessor-version":[{"id":2903,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions\/2903"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}