Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.78 KB | None | 0 0
  1. #
  2. #
  3. # The only thing that MUST be changed is to add one or more
  4. # file or directory names in the Include directive of the
  5. # FileSet resource.
  6. #
  7. # For Bacula release 5.2.13 (19 February 2013) -- redhat (Core)
  8. #
  9. # You might also want to change the default email address
  10. # from root to your address. See the "mail" and "operator"
  11. # directives in the Messages resource.
  12. #
  13.  
  14. Director { # define myself
  15. Name = bacula-dir
  16. DIRport = 9101 # where we listen for UA connections
  17. QueryFile = "/etc/bacula/query.sql"
  18. WorkingDirectory = "/var/spool/bacula"
  19. PidDirectory = "/var/run"
  20. Maximum Concurrent Jobs = 1
  21. Password = "SECRETPASSWORD" # Console password
  22. Messages = Daemon
  23. DirAddress = 10.0.0.180
  24. }
  25.  
  26. JobDefs {
  27. Name = "DefaultJob"
  28. Type = Backup
  29. Level = Full
  30. Client = bacula-fd
  31. FileSet = "Full Set"
  32. Schedule = "WeeklyCycle"
  33. Storage = File
  34. Messages = Standard
  35. Pool = File
  36. Priority = 10
  37. Write Bootstrap = "/var/spool/bacula/%c.bsr"
  38. }
  39.  
  40. Job{
  41. Name = "Bkp Client 182"
  42. JobDefs = "DefaultJob"
  43. Client = 10.0.0.182
  44. }
  45. Job{
  46. Name = "Bkp Client 182 inc"
  47. JobDefs = "DefaultJob"
  48. Client = 10.0.0.182
  49. Schedule = "testschedule"
  50. Level = Incremental
  51. }
  52.  
  53. Job{
  54. Name = "Bkp Client 183"
  55. JobDefs = "DefaultJob"
  56. Client = 10.0.0.183
  57. }
  58. Job{
  59. Name = "Bkp Client 188"
  60. JobDefs = "DefaultJob"
  61. Client = 10.0.0.188
  62. FileSet = "Windows"
  63. }
  64.  
  65. #
  66. # Define the main nightly save backup job
  67. # By default, this job will back up to disk in /tmp
  68. Job {
  69. Name = "IncBackup"
  70. JobDefs = "DefaultJob"
  71. }
  72.  
  73. #Job {
  74. # Name = "BackupClient2"
  75. # Client = bacula2-fd
  76. # JobDefs = "DefaultJob"
  77. #}
  78.  
  79. # Backup the catalog database (after the nightly save)
  80. Job {
  81. Name = "FullBackup"
  82. JobDefs = "DefaultJob"
  83. Level = Full
  84. FileSet="Catalog"
  85. #FileSet="Full Set"
  86. Schedule = "WeeklyCycleAfterBackup"
  87. # This creates an ASCII copy of the catalog
  88. # Arguments to make_catalog_backup.pl are:
  89. # make_catalog_backup.pl <catalog-name>
  90. RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
  91. # This deletes the copy of the catalog
  92. RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
  93. Write Bootstrap = "/var/spool/bacula/%n.bsr"
  94. Priority = 11 # run after main backup
  95. }
  96.  
  97. #
  98. # Standard Restore template, to be changed by Console program
  99. # Only one such job is needed for all Jobs/Clients/Storage ...
  100. #
  101. Job {
  102. Name = "RestoreFiles"
  103. Type = Restore
  104. Client=bacula-fd
  105. FileSet="Full Set"
  106. Storage = File
  107. Pool = Default
  108. Messages = Standard
  109. Where = /tmp/bacula-restores
  110. }
  111.  
  112.  
  113. FileSet {
  114. Name = "Windows"
  115. Include {
  116. Options {
  117. signature = MD5
  118. compression = GZIP
  119. }
  120. File = "C:/"
  121. }
  122. }
  123. FileSet {
  124. Name = "Full Set"
  125. Include {
  126. Options {
  127. signature = MD5
  128. compression = GZIP
  129. }
  130. #
  131. # Put your list of files here, preceded by 'File =', one per line
  132. # or include an external list with:
  133. #
  134. # File = <file-name
  135. #
  136. # Note: / backs up everything on the root partition.
  137. # if you have other partitions such as /usr or /home
  138. # you will probably want to add them too.
  139. #
  140. # By default this is defined to point to the Bacula binary
  141. # directory to give a reasonable FileSet to backup to
  142. # disk storage during initial testing.
  143. #
  144. File = /
  145. }
  146.  
  147. #
  148. # If you backup the root directory, the following two excluded
  149. # files can be useful
  150. #
  151. Exclude {
  152. File = /var/spool/bacula
  153. File = /tmp
  154. File = /proc
  155. File = /tmp
  156. File = /.journal
  157. File = /.fsck
  158. File = /bacula
  159. }
  160. }
  161.  
  162. #
  163. # When to do the backups, full backup on first sunday of the month,
  164. # differential (i.e. incremental since full) every other sunday,
  165. # and incremental backups other days
  166. Schedule {
  167. Name = "WeeklyCycle"
  168. Run = Full 1st sun at 23:05
  169. Run = Differential 2nd-5th sun at 23:05
  170. Run = Incremental mon-sat at 23:05
  171. }
  172.  
  173. # This schedule does the catalog. It starts after the WeeklyCycle
  174. Schedule {
  175. Name = "WeeklyCycleAfterBackup"
  176. Run = Full sun-sat at 23:10
  177. }
  178. Schedule {
  179. Name ="testschedule"
  180. Run = Incremental mon-sat at 11:05
  181. }
  182. # This is the backup of the catalog
  183. FileSet {
  184. Name = "Catalog"
  185. Include {
  186. Options {
  187. signature = MD5
  188. compression = GZIP
  189. }
  190. File = "/var/spool/bacula/bacula.sql"
  191. }
  192. }
  193.  
  194. # Client (File Services) to backup
  195. Client {
  196. Name = bacula-fd
  197. Address = localhost
  198. FDPort = 9102
  199. Catalog = MyCatalog
  200. Password = "SECRETPASSWORD" # password for FileDaemon
  201. File Retention = 30 days # 30 days
  202. Job Retention = 6 months # six months
  203. AutoPrune = yes # Prune expired Jobs/Files
  204. }
  205.  
  206. #
  207. # Second Client (File Services) to backup
  208. # You should change Name, Address, and Password before using
  209. Client {
  210. Name = 10.0.0.182
  211. Address = 10.0.0.182
  212. FDPort = 9102
  213. Catalog = MyCatalog
  214. Password = "SECRETPASSWORD" # password for FileDaemon 2
  215. File Retention = 30 days # 30 days
  216. Job Retention = 6 months
  217. AutoPrune = yes
  218. }
  219. Client {
  220. Name = 10.0.0.183
  221. Address = 10.0.0.183
  222. FDPort = 9102
  223. Catalog = MyCatalog
  224. Password = "SECRETPASSWORD" # password for FileDaemon 2
  225. File Retention = 30 days # 30 days
  226. Job Retention = 6 months
  227. AutoPrune = yes
  228. }
  229. Client {
  230. Name = 10.0.0.189
  231. Address = 10.0.0.189
  232. FDPort = 9102
  233. Catalog = MyCatalog
  234. Password = "SECRETPASSWORD" # password for FileDaemon 2
  235. File Retention = 30 days # 30 days
  236. Job Retention = 6 months
  237. AutoPrune = yes
  238. }
  239. Client {
  240. Name = 10.0.0.188
  241. Address = 10.0.0.188
  242. FDPort = 9102
  243. Catalog = MyCatalog
  244. Password = "SECRETPASSWORD" # password for FileDaemon 2
  245. File Retention = 30 days # 30 days
  246. Job Retention = 6 months
  247. AutoPrune = yes
  248. }
  249.  
  250. #
  251. #Client {
  252. # Name = bacula2-fd
  253. # Address = localhost2
  254. # FDPort = 9102
  255. # Catalog = MyCatalog
  256. # Password = "@@FD_PASSWORD@@2" # password for FileDaemon 2
  257. # File Retention = 30 days # 30 days
  258. # Job Retention = 6 months # six months
  259. # AutoPrune = yes # Prune expired Jobs/Files
  260. #}
  261.  
  262.  
  263. # Definition of file storage device
  264. Storage {
  265. Name = File
  266. # Do not use "localhost" here
  267. Address = 10.0.0.180 # N.B. Use a fully qualified name here
  268. SDPort = 9103
  269. Password = "SECRETPASSWORD"
  270. Device = FileStorage
  271. Media Type = File
  272. }
  273.  
  274.  
  275.  
  276. # Definition of DDS tape storage device
  277. #Storage {
  278. # Name = DDS-4
  279. # Do not use "localhost" here
  280. # Address = 10.0.0.180 # N.B. Use a fully qualified name here
  281. # SDPort = 9103
  282. # Password = "SECRETPASSWORD"
  283. # Device = DDS-4 # must be same as Device in Storage daemon
  284. # Media Type = DDS-4 # must be same as MediaType in Storage daemon
  285. # Autochanger = yes # enable for autochanger device
  286. #}
  287.  
  288. # Definition of 8mm tape storage device
  289. #Storage {
  290. # Name = "8mmDrive"
  291. # Do not use "localhost" here
  292. # Address = 10.0.0.180 # N.B. Use a fully qualified name here
  293. # SDPort = 9103
  294. # Password = "SECRETPASSWORD"
  295. # Device = "Exabyte 8mm"
  296. # MediaType = "8mm"
  297. #}
  298.  
  299. # Definition of DVD storage device
  300. #Storage {
  301. # Name = "DVD"
  302. # Do not use "localhost" here
  303. # Address = 10.0.0.180 # N.B. Use a fully qualified name here
  304. # SDPort = 9103
  305. # Password = "SECRETPASSWORD"
  306. # Device = "DVD Writer"
  307. # MediaType = "DVD"
  308. #}
  309.  
  310.  
  311. # Generic catalog service
  312. Catalog {
  313. Name = MyCatalog
  314. # Uncomment the following line if you want the dbi driver
  315. # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  316. dbname = "bacula"; dbuser = "bacula"; dbpassword = "SECRETPASSWORD"
  317. }
  318.  
  319. # Reasonable message delivery -- send most everything to email address
  320. # and to the console
  321. Messages {
  322. Name = Standard
  323. #
  324. # NOTE! If you send to two email or more email addresses, you will need
  325. # to replace the %r in the from field (-f part) with a single valid
  326. # email address in both the mailcommand and the operatorcommand.
  327. # What this does is, it sets the email address that emails would display
  328. # in the FROM field, which is by default the same email as they're being
  329. # sent to. However, if you send email to more than one address, then
  330. # you'll have to set the FROM address manually, to a single address.
  331. # for example, a 'no-reply@mydomain.com', is better since that tends to
  332. # tell (most) people that its coming from an automated source.
  333.  
  334. #
  335. mailcommand = "/usr/sbin/bsmtp -h localhost -f "(Bacula) <%r>" -s "Bacula: %t %e of %c %l" %r"
  336. operatorcommand = "/usr/sbin/bsmtp -h localhost -f "(Bacula) <%r>" -s "Bacula: Intervention needed for %j" %r"
  337. mail = root@localhost = all, !skipped
  338. operator = root@localhost = mount
  339. console = all, !skipped, !saved
  340. #
  341. # WARNING! the following will create a file that you must cycle from
  342. # time to time as it will grow indefinitely. However, it will
  343. # also keep all your messages if they scroll off the console.
  344. #
  345. append = "/var/log/bacula/bacula.log" = all, !skipped
  346. catalog = all
  347. }
  348.  
  349.  
  350. #
  351. # Message delivery for daemon messages (no job).
  352. Messages {
  353. Name = Daemon
  354. mailcommand = "/usr/sbin/bsmtp -h localhost -f "(Bacula) <%r>" -s "Bacula daemon message" %r"
  355. mail = root@localhost = all, !skipped
  356. console = all, !skipped, !saved
  357. append = "/var/log/bacula/bacula.log" = all, !skipped
  358. }
  359.  
  360. # Default pool definition
  361. Pool {
  362. Name = Default
  363. Pool Type = Backup
  364. Label Format = Local-
  365. Recycle = yes # Bacula can automatically recycle Volumes
  366. AutoPrune = yes # Prune expired volumes
  367. Volume Retention = 365 days # one year
  368. }
  369.  
  370. # File Pool definition
  371. Pool {
  372. Name = File
  373. Pool Type = Backup
  374. Label Format = Local-
  375. Recycle = yes # Bacula can automatically recycle Volumes
  376. AutoPrune = yes # Prune expired volumes
  377. Volume Retention = 365 days # one year
  378. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  379. Maximum Volumes = 100 # Limit number of Volumes in Pool
  380. }
  381.  
  382.  
  383. # Scratch pool definition
  384. Pool {
  385. Name = Scratch
  386. Pool Type = Backup
  387. Label Format = Local-
  388. }
  389.  
  390. #
  391. # Restricted console used by tray-monitor to get the status of the director
  392. #
  393. Console {
  394. Name = bacula-mon
  395. Password = "SECRETPASSWORD"
  396. CommandACL = status, .status
  397. }
  398.  
  399. #
  400. # Default Bacula File Daemon Configuration file
  401. #
  402. # For Bacula release 5.2.13 (19 February 2013) -- redhat (Core)
  403. #
  404. # There is not much to change here except perhaps the
  405. # File daemon Name to
  406. #
  407.  
  408. #
  409. # List Directors who are permitted to contact this File daemon
  410. #
  411. Director {
  412. Name = bacula-dir
  413. Password = "SECRETPASSWORD"
  414. }
  415.  
  416. #
  417. # Restricted Director, used by tray-monitor to get the
  418. # status of the file daemon
  419. #
  420. Director {
  421. Name = bacula-mon
  422. Password = "SECRETPASSWORD"
  423. Monitor = yes
  424. }
  425.  
  426. #
  427. # "Global" File daemon configuration specifications
  428. #
  429. FileDaemon { # this is me
  430. Name = 10.0.0.182
  431. FDport = 9102 # where we listen for the director
  432. WorkingDirectory = /var/spool/bacula
  433. Pid Directory = /var/run
  434. Maximum Concurrent Jobs = 20
  435. }
  436.  
  437. # Send all messages except skipped files back to Director
  438. Messages {
  439. Name = Standard
  440. director = bacula-dir = all, !skipped, !restored
  441. }
  442.  
  443. +-------+--------------------+---------------------+------+-------+----------+---------------+-----------+
  444. | JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus |
  445. +-------+--------------------+---------------------+------+-------+----------+---------------+-----------+
  446. | 145 | Bkp Client 182 | 2016-12-07 23:05:02 | B | I | 0 | 0 | E |
  447. | 146 | Bkp Client 183 | 2016-12-07 23:08:15 | B | I | 15 | 1,165,244 | T |
  448. | 147 | Bkp Client 188 | 2016-12-07 23:08:18 | B | I | 308 | 176,285,953 | T |
  449. | 148 | IncBackup | 2016-12-07 23:10:02 | B | I | 831 | 118,708,240 | T |
  450. | 149 | FullBackup | 2016-12-07 23:10:40 | B | F | 1 | 40,523,735 | T |
  451. +-------+--------------------+---------------------+------+-------+----------+---------------+-----------+
  452.  
  453. 07-Dec 23:05 bacula-dir JobId 145: Start Backup JobId 145, Job=Bkp_Client_182.2016-12-07_23.05.00_04
  454. 07-Dec 23:05 bacula-dir JobId 145: Using Device "FileStorage" to write.
  455. 07-Dec 23:08 bacula-dir JobId 145: Warning: bsock.c:132 Could not connect to Client: 10.0.0.182 on 10.0.0.182:9102. ERR=Interrupted system call
  456. Retrying ...
  457. 07-Dec 23:08 bacula-dir JobId 145: Fatal error: bsock.c:138 Unable to connect to Client: 10.0.0.182 on 10.0.0.182:9102. ERR=Interrupted system call
  458. 07-Dec 23:08 bacula-dir JobId 145: Fatal error: No Job status returned from FD.
  459. 07-Dec 23:08 bacula-dir JobId 145: Error: Bacula bacula-dir 5.2.13 (19Jan13):
  460. Build OS: x86_64-redhat-linux-gnu redhat (Core)
  461. JobId: 145
  462. Job: Bkp_Client_182.2016-12-07_23.05.00_04
  463. Backup Level: Incremental, since=2016-12-07 09:59:59
  464. Client: "10.0.0.182" 5.2.13 (19Jan13) x86_64-redhat-linux-gnu,redhat,(Core)
  465. FileSet: "Full Set" 2016-11-11 07:28:59
  466. Pool: "File" (From Job resource)
  467. Catalog: "MyCatalog" (From Client resource)
  468. Storage: "File" (From Job resource)
  469. Scheduled time: 07-Dec-2016 23:05:00
  470. Start time: 07-Dec-2016 23:05:02
  471. End time: 07-Dec-2016 23:08:12
  472. Elapsed time: 3 mins 10 secs
  473. Priority: 10
  474. FD Files Written: 0
  475. SD Files Written: 0
  476. FD Bytes Written: 0 (0 B)
  477. SD Bytes Written: 0 (0 B)
  478. Rate: 0.0 KB/s
  479. Software Compression: None
  480. VSS: no
  481. Encryption: no
  482. Accurate: no
  483. Volume name(s):
  484. Volume Session Id: 61
  485. Volume Session Time: 1480582855
  486. Last Volume Bytes: 28,914,391,620 (28.91 GB)
  487. Non-fatal FD errors: 1
  488. SD Errors: 0
  489. FD termination status: Error
  490. SD termination status: Waiting on FD
  491. Termination: *** Backup Error ***
  492.  
  493. LISTEN 0 50 *:9102 *:*
  494. LISTEN 0 128 *:22 *:*
  495. LISTEN 0 100 127.0.0.1:25 *:*
  496. LISTEN 0 128 :::22 :::*
  497. LISTEN 0 100 ::1:25 :::*
  498.  
  499. 08-Dec 11:05 bacula-dir JobId 153: Start Backup JobId 153, Job=Bkp_Client_182_inc.2016-12-08_11.05.00_06
  500. 08-Dec 11:05 bacula-dir JobId 153: Using Device "FileStorage" to write.
  501. 08-Dec 11:05 10.0.0.182 JobId 153: DIR and FD clocks differ by 7 seconds, FD automatically compensating.
  502. 08-Dec 11:05 bacula-sd JobId 153: Volume "Local-0001" previously written, moving to end of data.
  503. 08-Dec 11:05 bacula-sd JobId 153: Ready to append to end of Volume "Local-0001" size=30288206775
  504. 08-Dec 11:05 10.0.0.182 JobId 153: /boot is a different filesystem. Will not descend from / into it.
  505. 08-Dec 11:05 10.0.0.182 JobId 153: /dev is a different filesystem. Will not descend from / into it.
  506. 08-Dec 11:05 10.0.0.182 JobId 153: /run is a different filesystem. Will not descend from / into it.
  507. 08-Dec 11:05 10.0.0.182 JobId 153: /sys is a different filesystem. Will not descend from / into it.
  508. 08-Dec 11:05 bacula-sd JobId 153: Elapsed time=00:00:01, Transfer rate=271 Bytes/second
  509. 08-Dec 11:05 bacula-dir JobId 153: Bacula bacula-dir 5.2.13 (19Jan13):
  510. Build OS: x86_64-redhat-linux-gnu redhat (Core)
  511. JobId: 153
  512. Job: Bkp_Client_182_inc.2016-12-08_11.05.00_06
  513. Backup Level: Incremental, since=2016-12-08 11:01:16
  514. Client: "10.0.0.182" 5.2.13 (19Jan13) x86_64-redhat-linux-gnu,redhat,(Core)
  515. FileSet: "Full Set" 2016-11-11 07:28:59
  516. Pool: "File" (From Job resource)
  517. Catalog: "MyCatalog" (From Client resource)
  518. Storage: "File" (From Job resource)
  519. Scheduled time: 08-Dec-2016 11:05:00
  520. Start time: 08-Dec-2016 11:05:02
  521. End time: 08-Dec-2016 11:05:02
  522. Elapsed time: 0 secs
  523. Priority: 10
  524. FD Files Written: 4
  525. SD Files Written: 4
  526. FD Bytes Written: 0 (0 B)
  527. SD Bytes Written: 271 (271 B)
  528. Rate: 0.0 KB/s
  529. Software Compression: None
  530. VSS: no
  531. Encryption: no
  532. Accurate: no
  533. Volume name(s): Local-0001
  534. Volume Session Id: 69
  535. Volume Session Time: 1480582855
  536. Last Volume Bytes: 30,288,207,524 (30.28 GB)
  537. Non-fatal FD errors: 0
  538. SD Errors: 0
  539. FD termination status: OK
  540. SD termination status: OK
  541. Termination: Backup OK
  542.  
  543. 08-Dec 11:05 bacula-dir JobId 153: Begin pruning Jobs older than 6 months .
  544. 08-Dec 11:05 bacula-dir JobId 153: No Jobs found to prune.
  545. 08-Dec 11:05 bacula-dir JobId 153: Begin pruning Files.
  546. 08-Dec 11:05 bacula-dir JobId 153: No Files found to prune.
  547. 08-Dec 11:05 bacula-dir JobId 153: End auto prune.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement