Sie sind auf Seite 1von 18

7/4/13

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

mashdot / README.md
Last updated 2 months ago

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

README.md

Markdown

T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 6 : 5 6R E A D M E . m d > A u t h o r . . . . :' M a s h( T h o m a sH e r b e r t )

TOSHINE-BACULA
Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration. Please see http://toshine.org/etc (http://toshine.org/etc) for full article.

Bacula Debian Installation.


Install MySQL server.
r o o t @ b a c u l a d i r : ~ #a p t i t u d ei n s t a l lm y s q l s e r v e r

Configure MySQL to use server resources.


r o o t @ b a c u l a d i r : ~ #/ u s r / s h a r e / d o c / m y s q l s e r v e r 5 . 1 / e x a m p l e s #g u n z i pm y h u g e . c n f . g z r o o t @ b a c u l a d i r : ~ #/ u s r / s h a r e / d o c / m y s q l s e r v e r 5 . 1 / e x a m p l e s #c pm y h u g e . c n f/ e t c / m y s q l / r o o t @ b a c u l a d i r : / e t c / m y s q l #m vm y . c n fm y . c n f . o l d r o o t @ b a c u l a d i r : / e t c / m y s q l #m vm y h u g e . c n fm y . c n f r o o t @ b a c u l a d i r : / e t c / m y s q l #/ e t c / i n i t . d / m y s q lr e s t a r t

Create bacula database.


r o o t @ b a c u l a d i r : / e t c / m y s q l #m y s q lur o o tp m y s q l >c r e a t ed a t a b a s eb a c u l a ; m y s q l >G R A N TA L LO Nb a c u l a . *T Ob a c u l a @ l o c a l h o s tI D E N T I F I E DB Y' q u o h 7 X a i ' ; m y s q l >F L U S HP R I V I L E G E S ;

Install bacula with MySQL backend.


Follow prompts for root database user password (1st) and bacula database user password (2nd).

https://gist.github.com/mashdot/2312522

1/18

7/4/13

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

r o o t @ b a c u l a d i r : ~ #a p t i t u d ei n s t a l lb a c u l ab a c u l a d i r e c t o r m y s q lb a c u l a s d m y s q l

Check bacula table creation.


r o o t @ b a c u l a d i r : ~ #m y s q lub a c u l apb a c u l a m y s q l >s h o wt a b l e s ; + + |T a b l e s _ i n _ b a c u l a| + + |B a s e F i l e s |C D I m a g e s |C l i e n t |C o u n t e r s |D e v i c e |F i l e |F i l e S e t |F i l e n a m e |J o b |J o b H i s t o |J o b M e d i a |L o c a t i o n |L o c a t i o n L o g |L o g |M e d i a |M e d i a T y p e |P a t h |P a t h H i e r a r c h y |P a t h V i s i b i l i t y |P o o l |S t a t u s |S t o r a g e |U n s a v e d F i l e s |V e r s i o n | | | | | | | | | | | | | | | | | | | | | | | |

+ + 2 4r o w si ns e t( 0 . 0 0s e c )

Use this only if MySQL tables are not created.


r o o t @ b a c u l a d i r : ~ #c p/ u s r / s h a r e / b a c u l a d i r e c t o r / m a k e _ m y s q l _ t a b l e s/ e t c / b a c u l a / s c r i p t s / m a k e _ m y s q l _ t a b l e s r o o t @ b a c u l a d i r : / e t c / b a c u l a / s c r i p t s #. / m a k e _ m y s q l _ t a b l e sur o o tp

Create the backup directory.


r o o t @ b a c u l a d i r : ~ #m k d i rp/ m n t / n f s n a s g w / b a c u l a b a c k u p s r o o t @ b a c u l a d i r : ~ #c h o w nRb a c u l a : b a c u l a/ m n t / n f s n a s g w / b a c u l a b a c k u p s

Troubleshooting.
Configuration file check.
https://gist.github.com/mashdot/2312522 2/18

7/4/13

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

r o o t @ b a c u l a d i r : ~ #b a c u l a d i rt/ e t c / b a c u l a / b a c u l a d i r . c o n f r o o t @ b a c u l a d i r : ~ #b a c u l a s dt/ e t c / b a c u l a / b a c u l a s d . c o n f

Database check.
r o o t @ b a c u l a d i r : ~ #d b c h e c k/ e t c / b a c u l a / b a c u l a d i r . c o n fb a c u l ab a c u l aq u o h 7 X a i

Waiting to mount / client pool permissions.


If you receive a message regarding 'waiting to mount' check the logs, it may most likely be a directory permission issue. The directory should have 'bacula' user permissions.
r o o t @ b a c u l a d i r : ~ #l e s s/ v a r / l o g / b a c u l a / l o g

2 0 1 2 0 2 0 62 2 : 0 0 : 0 0 b a c u l a s dJ o b I d3 5 :W a r n i n g :l a b e l . c : 3 3 1O p e nd e v i c e" P r i m a r y F i l e D e v i c e "( / m n t / n f s n a s g w / )V o l u m e" w e b s e r v e r F u l l P o o l

bacula-dir.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / b a c u l a d i r . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #D e f i n et h eD i r e c t o rn a m e ,p a s s w o r du s e df o ra u t h e n t i c a t i n gt h eC o n s o l ep r o g r a m . D i r e c t o r{ N a m e=b a c u l a d i r D I R p o r t=9 1 0 1 Q u e r y F i l e=/ e t c / b a c u l a / s c r i p t s / q u e r y . s q l W o r k i n g D i r e c t o r y=/ v a r / l i b / b a c u l a P i d D i r e c t o r y=/ v a r / r u n / b a c u l a M a x i m u mC o n c u r r e n tJ o b s=4 #4b e c a u s et h e r ea r e4s t o r a g ed e v i c e s .S e ep o o l s . c o n f ,d e v i c e s . c o n f P a s s w o r d=V a o 8 o X h 6 #C o n s o l ep a s s w o r d . M e s s a g e s=D a e m o n D i r A d d r e s s=1 0 . 0 . 0 . 1 0 #D i r e c t o ra d d r e s s . H e a r t b e a tI n t e r v a l=1M i n u t e #P r e v e n t st i m e o u t s } #R e s t r i c t e dC o n s o l e ,u s e db yt r a y m o n i t o rf o rD i r e c t o rs t a t u s . C o n s o l e{ N a m e=b a c u l a m o n P a s s w o r d=A e n i 4 c o X C o m m a n d A C L=s t a t u s ,. s t a t u s } #I n c l u d es p l i tc o n f i gf i l e s . @ / e t c / b a c u l a / c o n f . d / c a t a l o g s . c o n f @ / e t c / b a c u l a / c o n f . d / f i l e s e t s . c o n f @ / e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f @ / e t c / b a c u l a / c o n f . d / m e s s a g e s . c o n f @ / e t c / b a c u l a / c o n f . d / p o o l s . c o n f @ / e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f @ / e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f #R e a dc l i e n td i r e c t o r yf o rc o n f i gf i l e s .R e m e m b e rt ob c o n s o l e" r e l o a d "a f t e ra d d i n gac l i e n t . @ | " s hc' c a t/ e t c / b a c u l a / c o n f . d / c l i e n t s / * . c o n f ' "

bacula-fd.conf
1 2 3 4 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 2b a c u l a f d . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / b a c u l a f d . c o n f#

https://gist.github.com/mashdot/2312522

3/18

7/4/13
5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i sf i l es h o u l db ep l a c e da n dc o n f i g u r e df o re a c hc l i e n ty o uw i s ht ob a c k u p . #N o t e :b a c u l a f dd o e sn o tn e c e s s a r i l yn e e dt ob ec o n f i g u r e da n dr u no nt h e #D i r e c t o ri t s e l f ,u n l e s sy o uw a n tt ob a c k u pi t s e l f . #D i r e c t o r sw h oa r ep e r m i t t e dt oc o n t a c tt h i sF i l ed a e m o n . D i r e c t o r{ N a m e=b a c u l a d i r #M a t c ht h eD i r e c t o r . P a s s w o r d=S h 6 o X s w #M a t c ht h e/ e t c / b a c u l a / c o n f . d / c l i e n t / x y z . c o n fo nt h eD i r e c t o r . } #R e s t r i c t e dD i r e c t o r ,u s e db yt r a y m o n i t o rf o rF i l ed a e m o ns t a t u s . D i r e c t o r{ N a m e=b a c u l a m o n #M a t c ht h eD i r e c t o rM o n i t o r . P a s s w o r d=A e n i 4 c o X #M u s tm a t c ht h e/ e t c / b a c u l a / b a c u l a d i r . c o n f" C o n s o l e{} "P a s s w o r d . M o n i t o r=y e s } #" G l o b a l "F i l ed a e m o nc o n f i g u r a t i o ns p e c i f i c a t i o n s . F i l e D a e m o n{ N a m e=b a c u l a d i r #T h i si st h ec l i e n tn a m e ,i fi ti s n ' tt h e nc h a n g ei t ! F D p o r t=9 1 0 2 W o r k i n g D i r e c t o r y=/ v a r / l i b / b a c u l a#C e n t O S :W o r k i n g D i r e c t o r y=/ v a r / s p o o l / b a c u l a P i dD i r e c t o r y=/ v a r / r u n / b a c u l a #C e n t O S :P i d D i r e c t o r y=/ v a r / r u n M a x i m u mC o n c u r r e n tJ o b s=1 0 F D A d d r e s s=1 0 . 0 . 0 . 1 0 #T h i si st h ec l i e n t( n o tD i r e c t o r ! )a d d r e s s ,i fi ti s n ' tt h e nc h a n g ei t ! H e a r t b e a tI n t e r v a l=1M i n u t e #P r e v e n t st i m e o u t s } #S e n da l lm e s s a g e se x c e p ts k i p p e df i l e sb a c kt oD i r e c t o r . M e s s a g e s{ N a m e=S t a n d a r d d i r e c t o r=b a c u l a d i r=a l l ,! s k i p p e d ,! r e s t o r e d }

bacula-sd.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 6b a c u l a s d . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / b a c u l a s d . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #N o t e :u s ee x t e r n a ld i r e c t o ra d d r e s sf o rc l i e n t st oc o n n e c t . S t o r a g e{ N a m e=b a c u l a s d S D A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 W o r k i n g D i r e c t o r y=/ v a r / l i b / b a c u l a P i dD i r e c t o r y=/ v a r / r u n / b a c u l a M a x i m u mC o n c u r r e n tJ o b s=1 0 H e a r t b e a tI n t e r v a l=1M i n u t e }

#P r e v e n t st i m e o u t s

#D i r e c t o rw h oi sp e r m i t t e dt oc o n t a c tt h i sS t o r a g ed a e m o n . D i r e c t o r{ N a m e=b a c u l a d i r P a s s w o r d=T a h 3 r M h 3 #M a t c h/ e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f } #S t o r a g ed e v i c e s . @ / e t c / b a c u l a / c o n f . d / d e v i c e s . c o n f #R e s t r i c t e dD i r e c t o r ,u s e db yt r a y m o n i t o rf o rS t o r a g ed a e m o ns t a t u s . D i r e c t o r{ N a m e=b a c u l a m o n P a s s w o r d=g u r o 6 O o h M o n i t o r=y e s } #S e n da l lm e s s a g e st ot h eD i r e c t o r , M e s s a g e s{ N a m e=S t a n d a r d d i r e c t o r=b a c u l a d i r=a l l

https://gist.github.com/mashdot/2312522

4/18

7/4/13
3 8 }

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

bat.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 2b a t . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / b a t . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # #B a c u l aA d m i n i s t r a t i o nT o o lC o n s o l e( b a t ) : #I n s t a l lt h i sG U I( b a c u l a c o n s o l e q t )s o m e w h e r et om a n a g et h eD i r e c t o rr e m o t e l y . D i r e c t o r{ N a m e=b a c u l a d i r D I R p o r t=9 1 0 1 A d d r e s s=1 0 . 0 . 0 . 1 0 #D i r e c t o r" C o n s o l e{ } "p a s s w o r d . P a s s w o r d=V a o 8 o X h 6 }

bconsole.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 0b c o n s o l e . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / b c o n s o l e . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #B a c u l aU s e rA g e n t" C o n s o l e "( b c o n s o l e ) . D i r e c t o r{ N a m e=b a c u l a d i r D I R p o r t=9 1 0 1 a d d r e s s=1 0 . 0 . 0 . 1 0 P a s s w o r d=V a o 8 o X h 6 }

conf.d/catalogs.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 7c a t a l o g s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c a t a l o g s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #M y S Q Lc a t a l o gs e r v i c e C a t a l o g{ N a m e=P r i m a r y C a t a l o g D BA d d r e s s=l o c a l h o s t d b n a m e=b a c u l a d b u s e r=b a c u l a d b p a s s w o r d=q u o h 7 X a i }

conf.d/clients/bacula-dir.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 4b a c u l a d i r . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / c o n f . d / c l i e n t s / b a c u l a d i r . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i si st h eD i r e c t o ri t s e l fu s e dt ob a c k u pt h ec a t a l o g . #A l lc o n f i gi si nt h i ss i n g l ef i l eo n l y ! #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=b a c u l a d i r A d d r e s s=1 0 . 0 . 0 . 1 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f

https://gist.github.com/mashdot/2312522

5/18

7/4/13
1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 }

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

#B a c k u pt h eD i r e c t o rc a t a l o gd a t a b a s e( a f t e rt h en i g h t l ys a v e ) . J o b{ N a m e=C a t a l o g B a c k u p T y p e=B a c k u p C l i e n t=b a c u l a d i r F i l e S e t=C a t a l o g B a c k u p F i l e S e t S c h e d u l e=C a t a l o g B a c k u p C y c l e S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e M e s s a g e s=S t a n d a r d P o o l=C a t a l o g B a c k u p P o o l #W A R N I N G ! ! !P a s s i n gt h ep a s s w o r dv i at h ec o m m a n dl i n ei si n s e c u r e . #s e ec o m m e n t si nm a k e _ c a t a l o g _ b a c k u pf o rd e t a i l s . #S i n g l eu s e rs y s t e ms oO K . R u n B e f o r e J o b=" / e t c / b a c u l a / s c r i p t s / m a k e _ c a t a l o g _ b a c k u pb a c u l ab a c u l aq u o h 7 X a i " R u n A f t e r J o b =" / e t c / b a c u l a / s c r i p t s / d e l e t e _ c a t a l o g _ b a c k u pb a c u l ab a c u l aq u o h 7 X a i " W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / % c . b s r " } #P o o ls p e c i f i cf o rt h ec a t a l o gb a c k u p . P o o l{ N a m e=C a t a l o g B a c k u p P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 M a x i m u mV o l u m eB y t e s=1 0 G U s eV o l u m eO n c e=y e s R e c y c l e=y e s A u t o P r u n e=y e s V o l u m eR e t e n t i o n=1m o n t h L a b e lF o r m a t=" C a t a l o g B a c k u p " } #T h i ss c h e d u l ed o e st h ec a t a l o gb a c k u pa f t e rt h e" P r i m a r y B a c k u p C y c l e " . S c h e d u l e{ N a m e=C a t a l o g B a c k u p C y c l e R u n=L e v e l = F u l ls u n s a ta t1 : 1 0 } #T h i si st h eb a c k u po ft h ec a t a l o g . F i l e S e t{ N a m e=C a t a l o g B a c k u p F i l e S e t I n c l u d e{ O p t i o n s{ s i g n a t u r e = M D 5 } F i l e=" / v a r / l i b / b a c u l a / b a c u l a . s q l " } }

conf.d/clients/example-client.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 3e x a m p l e c l i e n t . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c l i e n t s / e x a m p l e c l i e n t . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i sc a nb eu s e da st h es t a n d a r dc l i e n tc o n f i g . #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=e x a m p l e c l i e n t A d d r e s s=1 0 . 0 . 0 . 2 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f #T h e s ed on o ta f f e c ty o u ra r c h i v e ,a n ds h o u l db es e tl o w e rt h a nt h eP o o l / V o l u m er e t e n t i o nd e f i n i t i o n s . F i l eR e t e n t i o n=2w e e k s #F i l e sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fF i l e sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . J o bR e t e n t i o n= 2w e e k s #J o b sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fJ o br e c o r d sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . A u t o P r u n e=y e s #Y e st oe n a b l et h ea b o v e . H e a r t b e a tI n t e r v a l=1M i n u t e #P r e v e n t st i m e o u t s }

https://gist.github.com/mashdot/2312522

6/18

7/4/13
2 4 2 5 2 6 2 7 2 8 2 9 3 0

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
#J o bn a m ef o rc l i e n t ,a n dJ o b D e f .E x p l i c i t l ys p e c i f y i n gJ o br u l e sh e r ew i l l #o v e r i d et h ed e f a u l t sd e f i n e di nt h e/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f J o b{ N a m e=e x a m p l e c l i e n t C l i e n t=e x a m p l e c l i e n t J o b D e f s=" S t a n d a r d L i n u x J o b " }

conf.d/clients/example-client2.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 3e x a m p l e c l i e n t 2 . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c l i e n t s / e x a m p l e c l i e n t 2 . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i sc a nb eu s e da st h es t a n d a r dc l i e n tc o n f i g . #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=e x a m p l e c l i e n t 2 A d d r e s s=1 0 . 0 . 0 . 3 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f #T h e s ed on o ta f f e c ty o u ra r c h i v e ,a n ds h o u l db es e tl o w e rt h a nt h eP o o l / V o l u m er e t e n t i o nd e f i n i t i o n s . F i l eR e t e n t i o n=2w e e k s #F i l e sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fF i l e sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . J o bR e t e n t i o n= 2w e e k s #J o b sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fJ o br e c o r d sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . A u t o P r u n e=y e s #Y e st oe n a b l et h ea b o v e . }

#J o bn a m ef o rc l i e n t ,a n dJ o b D e f .E x p l i c i t l ys p e c i f y i n gJ o br u l e sh e r ew i l l #o v e r i d et h ed e f a u l t sd e f i n e di nt h e/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f J o b{ N a m e=e x a m p l e c l i e n t 2 C l i e n t=e x a m p l e c l i e n t 2 J o b D e f s=S t a n d a r d L i n u x J o b S c h e d u l e=e x a m p l e c l i e n t 2 S c h e d u l e } S c h e d u l e{ N a m e=e x a m p l e c l i e n t 2 S c h e d u l e R u n=L e v e l = F u l lt u ea t1 2 : 1 1 R u n=L e v e l = D i f f e r e n t i a lt u ea t1 2 : 1 1 R u n=L e v e l = I n c r e m e n t a lt u ea t1 2 : 1 1 }

conf.d/devices.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 7d e v i c e s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / d e v i c e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h e s ea r er e f e r e n c e di n/ e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f #M u l t i p l ea r ed e f i n e di nt h ej o b d e f ss e p a r a t e db yc o m m a s . #A l w a y sO p e n=n o ,I m p o r t a n tf o rs t o r a g ed a e m o nt oo p e ni to n l yw h e naj o bs t a r t s . #D e v i c e ss u p p o r t e db yt h i sS t o r a g ed a e m o n . D e v i c e{ N a m e=P r i m a r y F i l e D e v i c e M e d i aT y p e=P r i m a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=S e c o n d a r y F i l e D e v i c e

https://gist.github.com/mashdot/2312522

7/18

7/4/13
2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
M e d i aT y p e=S e c o n d a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=T e r t i a r y F i l e D e v i c e M e d i aT y p e=T e r t i a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=Q u a t e r n a r y F i l e D e v i c e M e d i aT y p e=Q u a t e r n a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } #F r e ef o rr e s t o r ej o b s . D e v i c e{ N a m e=R e s t o r e F i l e D e v i c e M e d i aT y p e=R e s t o r e F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o }

conf.d/filesets.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 9f i l e s e t s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / f i l e s e t s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #S t a n d a r dL i n u xF i l eS e t . #N o tl i v eM y S Q Ld a t a ! F i l e S e t{ N a m e=S t a n d a r d L i n u x F i l e S e t I n c l u d e{ O p t i o n s{ s i g n a t u r e=M D 5 c o m p r e s s i o n=G Z I P o n e f s=n o f s t y p e=e x t 2 f s t y p e=e x t 3 f s t y p e=e x t 4 f s t y p e=r e i s e r f s } F i l e=/ } E x c l u d e{ F i l e=/ h o m e / m y s q l F i l e=/ p r o c F i l e=/ s y s F i l e=/ t m p F i l e=/ v a r / c a c h e / a p t / a r c h i v e s F i l e=/ v a r / t m p F i l e=/ v a r / l i b / m q u e u e

#D e b i a ns p e c i f i c

https://gist.github.com/mashdot/2312522

8/18

7/4/13
3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
F i l e=/ v a r / l i b / m y s q l F i l e=/ . f s c k F i l e=/ . a u t o f s c k F i l e=/ . j o u r n a l } } #S t a n d a r dW i n d o w sF i l eS e t . #N o tl i v eS Q Ld a t a ! F i l e S e t{ N a m e=S t a n d a r d W i n d o w s F i l e S e t E n a b l eV S S=y e s I n c l u d e{ O p t i o n s{ s i g n a t u r e=M D 5 c o m p r e s s i o n=G Z I P e x c l u d e=y e s w i l d f i l e=" * . m d f " w i l d f i l e=" * . l d f " w i l d f i l e=" * . M D F " w i l d f i l e=" * . L D F " } F i l e=C : / F i l e=D : / F i l e=D : / M i c r o s o f tS Q LS e r v e r / M S S Q L / B A C K U P F i l e=E : / F i l e=F : / F i l e=G : / } E x c l u d e{ F i l e=D : / S Q L D a t a R o o t F i l e=D : / M i c r o s o f tS Q LS e r v e r / M S S Q L } }

conf.d/jobdefs.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 9j o b d e f s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h eJ o b D e f sr e s o u r c ep e r m i t sa l lt h es a m ed i r e c t i v e st h a tc a na p p e a ri naJ o br e s o u r c e . #H o w e v e r ,aJ o b D e f sr e s o u r c ed o e sn o tc r e a t eaJ o b ,r a t h e ri tc a nb er e f e r e n c e dw i t h i na #J o bt op r o v i d ed e f a u l t sf o rt h a tJ o b .T h i sp e r m i t sy o ut oc o n c i s e l yd e f i n es e v e r a ln e a r l y #i d e n t i c a lJ o b s ,e a c ho n er e f e r e n c i n gaJ o b D e f sr e s o u r c ew h i c hc o n t a i n st h ed e f a u l t s . #O n l yt h ec h a n g e sf r o mt h ed e f a u l t sn e e db em e n t i o n e di ne a c hJ o b . #S t a n d a r dR e s t o r et e m p l a t e ,t ob ec h a n g e db yC o n s o l ep r o g r a m . #N o tJ o b D e fb u tt h i sh a st oe x i s ts o m e w h e r ea sat e m p l a t e . J o b{ N a m e=R e s t o r e T y p e=R e s t o r e C l i e n t=b a c u l a d i r F i l e S e t=S t a n d a r d L i n u x F i l e S e t S t o r a g e=R e s t o r e F i l e S t o r a g e P o o l=F u l l P o o l P r i o r i t y=1 M e s s a g e s=S t a n d a r d W h e r e=/ t m p } #M a i nj o bd e f i n i t i o n su s e db yc l i e n t s/ e t c / b a c u l a / c l i e n t s . J o b D e f s{ N a m e=S t a n d a r d L i n u x J o b T y p e=B a c k u p F i l e S e t=S t a n d a r d L i n u x F i l e S e t S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e , Q u a t e r n a r y F i l e S t o r a g e P o o l=D e f a u l t P o o l #D e f a u l tP o o l ,o v e r i d d e np o o l sa n ds c h e d u l e s . F u l lB a c k u pP o o l=F u l l P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f I n c r e m e n t a lB a c k u pP o o l=I n c P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f D i f f e r e n t i a lB a c k u pP o o l=D i f f P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r e f e rM o u n t e dV o l u m e s=n o #F i n d i n ga nu n u s e dd r i v e ,o t h e r w i s e ,j o bs t a r t e dw i l la p p e n dt ov o l u m e . W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / b a c u l a b a c k u p s / % c . b s r "

https://gist.github.com/mashdot/2312522

9/18

7/4/13
3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
S c h e d u l e=P r i m a r y B a c k u p C y c l e P r i o r i t y=1 0 M e s s a g e s=S t a n d a r d } #/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f #T e ni sd e f a u l t

J o b D e f s{ N a m e=S t a n d a r d W i n d o w s J o b T y p e=B a c k u p F i l e S e t=S t a n d a r d W i n d o w s F i l e S e t S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e , Q u a t e r n a r y F i l e S t o r a g e P o o l=D e f a u l t P o o l #D e f a u l tP o o l ,o v e r i d d e np o o l sa n ds c h e d u l e s . F u l lB a c k u pP o o l=F u l l P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f I n c r e m e n t a lB a c k u pP o o l=I n c P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f D i f f e r e n t i a lB a c k u pP o o l=D i f f P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r e f e rM o u n t e dV o l u m e s=n o #F i n d i n ga nu n u s e dd r i v e ,o t h e r w i s e ,j o bs t a r t e dw i l la p p e n dt ov o l u m e . W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / b a c u l a b a c k u p s / % c . b s r " S c h e d u l e=P r i m a r y B a c k u p C y c l e #/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r i o r i t y=1 0 #T e ni sd e f a u l t M e s s a g e s=S t a n d a r d }

conf.d/messages.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 1m e s s a g e s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / m e s s a g e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #D e f i n ew h e r ee r r o ra n di n f o r m a t i o nm e s s a g e sa r et ob es e n to rl o g g e d . M e s s a g e s{ N a m e=S t a n d a r d m a i l c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l a :% t% eo f% c% l \ "% r " o p e r a t o r c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l a :I n t e r v e n t i o nn e e d e df o r% j \ "% r " m a i l=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l ,! s k i p p e d o p e r a t o r=b a c u l a b a c k u p @ e x a m p l e . c o m=m o u n t c o n s o l e=a l l ,! s k i p p e d ,! s a v e d c a t a l o g=a l l ,! s k i p p e d ,! s a v e d m a i l o n e r r o r=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l a p p e n d=" / v a r / l o g / b a c u l a / l o g "=a l l ,! s k i p p e d } M e s s a g e s{ N a m e=D a e m o n m a i l c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l ad a e m o nm e s s a g e \ "% r " m a i l=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l ,! s k i p p e d c o n s o l e=a l l ,! s k i p p e d ,! s a v e d a p p e n d=" / v a r / l o g / b a c u l a / l o g "=a l l ,! s k i p p e d }

conf.d/pools.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 8p o o l s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / p o o l s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #h e l p . :h t t p : / / w w w . b a c u l a . o r g / e n / d e v m a n u a l / m a i n / m a i n / A u t o m a t i c _ V o l u m e _ R e c y c l i n g . h t m l #k u d o s :h t t p : / / w w w . d a v i d c r a d d o c k . n e t / 2 0 0 8 / 1 0 / 2 9 / l i n u x b a c k u p s u s i n g b a c u l a /

#T h i si st h ed e f a u l tb a c k u ps t a n z a ,w h i c ha l w a y sg e t so v e r r i d d e nb yo n eo ft h eo t h e rP o o l s , #e x c e p tw h e nam a n u a lb a c k u pi sp e r f o r m e dv i at h ec o n s o l e . P o o l{ N a m e=D e f a u l t P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 #I fy o us p e c i f yz e r o( t h ed e f a u l t ) ,t h e r ei sn ol i m i t . #M a x i m u mV o l u m e s=1 0 0 #N u m b e ro fv o l u m e sw i l lb ep e r m i t t e d . M a x i m u mV o l u m eB y t e s=1 0 G #M a x i m u mV o l u m es i z e ,k e e ps m a l lf o rs e a r c hp e r f o r m a n c e . U s eV o l u m eO n c e=y e s #M a r kav o l u m ea sU s e da n dt h u sn ol o n g e ra p p e n d a b l e . R e c y c l e=n o #D o n ' tr e c y c l eV o l u m e sb u tp r u n ea l lt h eJ o b so nt h ev o l u m e ,m a r k" P u r g e d " . A c t i o nO nP u r g e=T r u n c a t e #T r u n c a t et h ev o l u m ew h e ni ti sp u r g e d . A u t oP r u n e=y e s #Y e s( d e f a u l t ) ,a p p l i e sV o l u m eR e t e n t i o np e r i o dw h e nn e wV o l u m ei sn e e d e da n dn oa p p e n d a b l eV o l u m e se x i s ti

https://gist.github.com/mashdot/2312522

10/18

7/4/13
2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
V o l u m eR e t e n t i o n=1m o n t h #R e t e n t i o nt i m eo fr e c o r d sa s s o c i a t e dw i t ht h eV o l u m ei nt h eC a t a l o gd a t a b a s e . #R e l a t e dt o" L a b e l M e d i a "/ e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f L a b e lF o r m a t=" $ { C l i e n t } $ { P o o l } $ { Y e a r } $ { M o n t h : p / 2 / 0 / r } $ { D a y : p / 2 / 0 / r } $ { H o u r : p / 2 / 0 / r } $ { M i n u t e : p / 2 / 0 / r } $ { J o b I d } " } #N O T E :S e e/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n fa st h i sc o n t r o l sw h e ne a c hb a c k u pt y p e( F u l l , D i f f , I n c )i sr u n . #M a x i m u mV o l u m eJ o b s=1 ,s ot h a tc l i e n t / j o bc r e a t e sas i n g l ev o l u m ep e rj o b( a n o t h e ri fm o r et h a n1 0 G ) . #B e l o wd e f i n e sw h i c hP o o l st ou s ef o re a c hb a c k u pt y p e . P o o l{ N a m e=F u l l P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 U s eV o l u m eO n c e=y e s M a x i m u mV o l u m eB y t e s=1 0 G R e c y c l e=n o A c t i o nO nP u r g e=T r u n c a t e A u t oP r u n e=y e s V o l u m eR e t e n t i o n=1m o n t h L a b e lF o r m a t=" $ { C l i e n t } $ { P o o l } $ { Y e a r } $ { M o n t h : p / 2 / 0 / r } $ { D a y : p / 2 / 0 / r } $ { H o u r : p / 2 / 0 / r } $ { M i n u t e : p / 2 / 0 / r } $ { J o b I d } " } P o o l{ N a m e=D i f f P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 U s eV o l u m eO n c e=y e s M a x i m u mV o l u m eB y t e s=1 0 G R e c y c l e=n o A c t i o nO nP u r g e=T r u n c a t e A u t oP r u n e=y e s V o l u m eR e t e n t i o n=1m o n t h L a b e lF o r m a t=" $ { C l i e n t } $ { P o o l } $ { Y e a r } $ { M o n t h : p / 2 / 0 / r } $ { D a y : p / 2 / 0 / r } $ { H o u r : p / 2 / 0 / r } $ { M i n u t e : p / 2 / 0 / r } $ { J o b I d } " } P o o l{ N a m e=I n c P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 U s eV o l u m eO n c e=y e s M a x i m u mV o l u m eB y t e s=1 0 G R e c y c l e=n o A c t i o nO nP u r g e=T r u n c a t e A u t oP r u n e=y e s V o l u m eR e t e n t i o n=1m o n t h L a b e lF o r m a t=" $ { C l i e n t } $ { P o o l } $ { Y e a r } $ { M o n t h : p / 2 / 0 / r } $ { D a y : p / 2 / 0 / r } $ { H o u r : p / 2 / 0 / r } $ { M i n u t e : p / 2 / 0 / r } $ { J o b I d } " }

conf.d/schedules.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 0s c h e d u l e s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #D i f f e r e n t i a l :f i l e sc h a n g e ds i n c et h el a s tF u l lb a c k u p . #I n c r e m e n t a l :f i l e sc h a n g e ds i n c et h el a s tb a c k u p( b et h a tF u l l ,D i f f e r e n t i a lo rI n c r e m e n t a l ) . #|S u n |M o n|T u e s|W e d|T h u r|F r i|S a t| #|F u l l|I n c|I n c |I n c|D i f f|I n c|I n c| #T h i sc y c l ei su s e di nt h eJ o b D e f s ,a n dP o o l s . #L e v e lP o o l sa r ed e f i n e di n/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f . S c h e d u l e{ N a m e=P r i m a r y B a c k u p C y c l e R u n=L e v e l = F u l ls u na t2 2 : 0 0 R u n=L e v e l = D i f f e r e n t i a lt h ua t2 2 : 0 0 R u n=L e v e l = I n c r e m e n t a lm o n , t u e , w e d , f r i , s a ta t2 2 : 0 0 }

conf.d/storages.conf

https://gist.github.com/mashdot/2312522

11/18

7/4/13
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
#T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 8s t o r a g e s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #h t t p : / / b a c u l a . o r g / 5 . 2 . x m a n u a l s / e n / m a i n / m a i n / B a s i c _ V o l u m e _ M a n a g e m e n t . h t m l # S E C T I O N 0 0 3 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 #S e e/ e t c / b a c u l a / c o n f . d / d e v i c e s . c o n f #N o t e :u s ee x t e r n a ld i r e c t o ra d d r e s sf o rc l i e n t st oc o n n e c t . S t o r a g e{ N a m e=P r i m a r y F i l e S t o r a g e A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 P a s s w o r d=T a h 3 r M h 3 #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f D e v i c e=P r i m a r y F i l e D e v i c e #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f M e d i aT y p e=P r i m a r y F i l e M a x i m u mC o n c u r r e n tJ o b s=1 0 } S t o r a g e{ N a m e=S e c o n d a r y F i l e S t o r a g e A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 P a s s w o r d=T a h 3 r M h 3 D e v i c e=S e c o n d a r y F i l e D e v i c e M e d i aT y p e=S e c o n d a r y F i l e M a x i m u mC o n c u r r e n tJ o b s=1 0 }

#M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f

S t o r a g e{ N a m e=T e r t i a r y F i l e S t o r a g e A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 P a s s w o r d=T a h 3 r M h 3 #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f D e v i c e=T e r t i a r y F i l e D e v i c e #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f M e d i aT y p e=T e r t i a r y F i l e M a x i m u mC o n c u r r e n tJ o b s=1 0 } S t o r a g e{ N a m e=Q u a t e r n a r y F i l e S t o r a g e A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 P a s s w o r d=T a h 3 r M h 3 #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f D e v i c e=Q u a t e r n a r y F i l e D e v i c e #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f M e d i aT y p e=Q u a t e r n a r y F i l e M a x i m u mC o n c u r r e n tJ o b s=1 0 } #F r e ef o rr e s t o r ej o b s . S t o r a g e{ N a m e=R e s t o r e F i l e S t o r a g e A d d r e s s=1 0 . 0 . 0 . 1 0 S D P o r t=9 1 0 3 P a s s w o r d=T a h 3 r M h 3 #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f D e v i c e=R e s t o r e F i l e D e v i c e #M a t c h/ e t c / b a c u l a / b a c u l a s d . c o n f M e d i aT y p e=R e s t o r e F i l e M a x i m u mC o n c u r r e n tJ o b s=1 0 }

conf.dcatalogs.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 7c a t a l o g s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c a t a l o g s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #M y S Q Lc a t a l o gs e r v i c e C a t a l o g{ N a m e=P r i m a r y C a t a l o g D BA d d r e s s=l o c a l h o s t d b n a m e=b a c u l a d b u s e r=b a c u l a d b p a s s w o r d=q u o h 7 X a i

https://gist.github.com/mashdot/2312522

12/18

7/4/13
1 4 }

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

conf.dclientsbacula-dir.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 4b a c u l a d i r . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / c o n f . d / c l i e n t s / b a c u l a d i r . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i si st h eD i r e c t o ri t s e l fu s e dt ob a c k u pt h ec a t a l o g . #A l lc o n f i gi si nt h i ss i n g l ef i l eo n l y ! #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=b a c u l a d i r A d d r e s s=1 0 . 0 . 0 . 1 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f } #B a c k u pt h eD i r e c t o rc a t a l o gd a t a b a s e( a f t e rt h en i g h t l ys a v e ) . J o b{ N a m e=C a t a l o g B a c k u p T y p e=B a c k u p C l i e n t=b a c u l a d i r F i l e S e t=C a t a l o g B a c k u p F i l e S e t S c h e d u l e=C a t a l o g B a c k u p C y c l e S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e M e s s a g e s=S t a n d a r d P o o l=C a t a l o g B a c k u p P o o l #W A R N I N G ! ! !P a s s i n gt h ep a s s w o r dv i at h ec o m m a n dl i n ei si n s e c u r e . #s e ec o m m e n t si nm a k e _ c a t a l o g _ b a c k u pf o rd e t a i l s . #S i n g l eu s e rs y s t e ms oO K . R u n B e f o r e J o b=" / e t c / b a c u l a / s c r i p t s / m a k e _ c a t a l o g _ b a c k u pb a c u l ab a c u l aq u o h 7 X a i " R u n A f t e r J o b =" / e t c / b a c u l a / s c r i p t s / d e l e t e _ c a t a l o g _ b a c k u pb a c u l ab a c u l aq u o h 7 X a i " W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / % c . b s r " } #P o o ls p e c i f i cf o rt h ec a t a l o gb a c k u p . P o o l{ N a m e=C a t a l o g B a c k u p P o o l P o o lT y p e=B a c k u p M a x i m u mV o l u m eJ o b s=1 M a x i m u mV o l u m eB y t e s=1 0 G U s eV o l u m eO n c e=y e s R e c y c l e=y e s A u t o P r u n e=y e s V o l u m eR e t e n t i o n=1m o n t h L a b e lF o r m a t=" C a t a l o g B a c k u p " } #T h i ss c h e d u l ed o e st h ec a t a l o gb a c k u pa f t e rt h e" P r i m a r y B a c k u p C y c l e " . S c h e d u l e{ N a m e=C a t a l o g B a c k u p C y c l e R u n=L e v e l = F u l ls u n s a ta t1 : 1 0 } #T h i si st h eb a c k u po ft h ec a t a l o g . F i l e S e t{ N a m e=C a t a l o g B a c k u p F i l e S e t I n c l u d e{ O p t i o n s{ s i g n a t u r e = M D 5 } F i l e=" / v a r / l i b / b a c u l a / b a c u l a . s q l " } }

conf.dclientsexample-client.conf
1 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 3e x a m p l e c l i e n t . c o n f >

https://gist.github.com/mashdot/2312522

13/18

7/4/13
2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c l i e n t s / e x a m p l e c l i e n t . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i sc a nb eu s e da st h es t a n d a r dc l i e n tc o n f i g . #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=e x a m p l e c l i e n t A d d r e s s=1 0 . 0 . 0 . 2 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f #T h e s ed on o ta f f e c ty o u ra r c h i v e ,a n ds h o u l db es e tl o w e rt h a nt h eP o o l / V o l u m er e t e n t i o nd e f i n i t i o n s . F i l eR e t e n t i o n=2w e e k s #F i l e sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fF i l e sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . J o bR e t e n t i o n= 2w e e k s #J o b sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fJ o br e c o r d sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . A u t o P r u n e=y e s #Y e st oe n a b l et h ea b o v e . H e a r t b e a tI n t e r v a l=1M i n u t e #P r e v e n t st i m e o u t s }

#J o bn a m ef o rc l i e n t ,a n dJ o b D e f .E x p l i c i t l ys p e c i f y i n gJ o br u l e sh e r ew i l l #o v e r i d et h ed e f a u l t sd e f i n e di nt h e/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f J o b{ N a m e=e x a m p l e c l i e n t C l i e n t=e x a m p l e c l i e n t J o b D e f s=" S t a n d a r d L i n u x J o b " }

conf.dclientsexample-client2.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 3e x a m p l e c l i e n t 2 . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / c l i e n t s / e x a m p l e c l i e n t 2 . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h i sc a nb eu s e da st h es t a n d a r dc l i e n tc o n f i g . #R e m o t ec l i e n tn a m e ,a d d r e s s ,a n dm a t c h i n gp a s s w o r dw i t ht h e i rb a c u l a f d . c o n f . C l i e n t{ N a m e=e x a m p l e c l i e n t 2 A d d r e s s=1 0 . 0 . 0 . 3 0 #R e m o t ec l i e n ta d d r e s s . F DP o r t=9 1 0 2 #D e f a u l t . P a s s w o r d=S h 6 o X s w #M a t c h e sr e m o t ec l i e n t/ e t c / b a c u l a / b a c u l a f d . c o n f C a t a l o g=P r i m a r y C a t a l o g #M a t c h e si n/ e t c / b a c u l a / b a c u l a d i r . c o n f #T h e s ed on o ta f f e c ty o u ra r c h i v e ,a n ds h o u l db es e tl o w e rt h a nt h eP o o l / V o l u m er e t e n t i o nd e f i n i t i o n s . F i l eR e t e n t i o n=2w e e k s #F i l e sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fF i l e sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . J o bR e t e n t i o n= 2w e e k s #J o b sa r ep r u n e df r o mC a t a l o gd a t a b a s ei fJ o br e c o r d sa r eo l d e rt h a nF i l er e t e n t i o np e r i o d . A u t o P r u n e=y e s #Y e st oe n a b l et h ea b o v e . }

#J o bn a m ef o rc l i e n t ,a n dJ o b D e f .E x p l i c i t l ys p e c i f y i n gJ o br u l e sh e r ew i l l #o v e r i d et h ed e f a u l t sd e f i n e di nt h e/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f J o b{ N a m e=e x a m p l e c l i e n t 2 C l i e n t=e x a m p l e c l i e n t 2 J o b D e f s=S t a n d a r d L i n u x J o b S c h e d u l e=e x a m p l e c l i e n t 2 S c h e d u l e } S c h e d u l e{ N a m e=e x a m p l e c l i e n t 2 S c h e d u l e R u n=L e v e l = F u l lt u ea t1 2 : 1 1 R u n=L e v e l = D i f f e r e n t i a lt u ea t1 2 : 1 1 R u n=L e v e l = I n c r e m e n t a lt u ea t1 2 : 1 1 }

conf.ddevices.conf
1 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 7d e v i c e s . c o n f >

https://gist.github.com/mashdot/2312522

14/18

7/4/13
2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / d e v i c e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h e s ea r er e f e r e n c e di n/ e t c / b a c u l a / c o n f . d / s t o r a g e s . c o n f #M u l t i p l ea r ed e f i n e di nt h ej o b d e f ss e p a r a t e db yc o m m a s . #A l w a y sO p e n=n o ,I m p o r t a n tf o rs t o r a g ed a e m o nt oo p e ni to n l yw h e naj o bs t a r t s . #D e v i c e ss u p p o r t e db yt h i sS t o r a g ed a e m o n . D e v i c e{ N a m e=P r i m a r y F i l e D e v i c e M e d i aT y p e=P r i m a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=S e c o n d a r y F i l e D e v i c e M e d i aT y p e=S e c o n d a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=T e r t i a r y F i l e D e v i c e M e d i aT y p e=T e r t i a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } D e v i c e{ N a m e=Q u a t e r n a r y F i l e D e v i c e M e d i aT y p e=Q u a t e r n a r y F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o } #F r e ef o rr e s t o r ej o b s . D e v i c e{ N a m e=R e s t o r e F i l e D e v i c e M e d i aT y p e=R e s t o r e F i l e A r c h i v eD e v i c e=/ m n t / n f s n a s g w / b a c u l a b a c k u p s / L a b e lM e d i a=y e s R a n d o mA c c e s s=y e s A u t o m a t i cM o u n t=y e s R e m o v a b l eM e d i a=n o A l w a y sO p e n=n o }

conf.dfilesets.conf
1 2 3 4 5 6 7 8 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 9f i l e s e t s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / f i l e s e t s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #S t a n d a r dL i n u xF i l eS e t . #N o tl i v eM y S Q Ld a t a !

https://gist.github.com/mashdot/2312522

15/18

7/4/13
9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
F i l e S e t{ N a m e=S t a n d a r d L i n u x F i l e S e t I n c l u d e{ O p t i o n s{ s i g n a t u r e=M D 5 c o m p r e s s i o n=G Z I P o n e f s=n o f s t y p e=e x t 2 f s t y p e=e x t 3 f s t y p e=e x t 4 f s t y p e=r e i s e r f s } F i l e=/ } E x c l u d e{ F i l e=/ h o m e / m y s q l F i l e=/ p r o c F i l e=/ s y s F i l e=/ t m p F i l e=/ v a r / c a c h e / a p t / a r c h i v e s F i l e=/ v a r / t m p F i l e=/ v a r / l i b / m q u e u e F i l e=/ v a r / l i b / m y s q l F i l e=/ . f s c k F i l e=/ . a u t o f s c k F i l e=/ . j o u r n a l } }

#D e b i a ns p e c i f i c

#S t a n d a r dW i n d o w sF i l eS e t . #N o tl i v eS Q Ld a t a ! F i l e S e t{ N a m e=S t a n d a r d W i n d o w s F i l e S e t E n a b l eV S S=y e s I n c l u d e{ O p t i o n s{ s i g n a t u r e=M D 5 c o m p r e s s i o n=G Z I P e x c l u d e=y e s w i l d f i l e=" * . m d f " w i l d f i l e=" * . l d f " w i l d f i l e=" * . M D F " w i l d f i l e=" * . L D F " } F i l e=C : / F i l e=D : / F i l e=D : / M i c r o s o f tS Q LS e r v e r / M S S Q L / B A C K U P F i l e=E : / F i l e=F : / F i l e=G : / } E x c l u d e{ F i l e=D : / S Q L D a t a R o o t F i l e=D : / M i c r o s o f tS Q LS e r v e r / M S S Q L } }

conf.djobdefs.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 2 9j o b d e f s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / j o b d e f s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #T h eJ o b D e f sr e s o u r c ep e r m i t sa l lt h es a m ed i r e c t i v e st h a tc a na p p e a ri naJ o br e s o u r c e . #H o w e v e r ,aJ o b D e f sr e s o u r c ed o e sn o tc r e a t eaJ o b ,r a t h e ri tc a nb er e f e r e n c e dw i t h i na #J o bt op r o v i d ed e f a u l t sf o rt h a tJ o b .T h i sp e r m i t sy o ut oc o n c i s e l yd e f i n es e v e r a ln e a r l y #i d e n t i c a lJ o b s ,e a c ho n er e f e r e n c i n gaJ o b D e f sr e s o u r c ew h i c hc o n t a i n st h ed e f a u l t s . #O n l yt h ec h a n g e sf r o mt h ed e f a u l t sn e e db em e n t i o n e di ne a c hJ o b . #S t a n d a r dR e s t o r et e m p l a t e ,t ob ec h a n g e db yC o n s o l ep r o g r a m . #N o tJ o b D e fb u tt h i sh a st oe x i s ts o m e w h e r ea sat e m p l a t e . J o b{ N a m e=R e s t o r e T y p e=R e s t o r e

https://gist.github.com/mashdot/2312522

16/18

7/4/13
1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
C l i e n t=b a c u l a d i r F i l e S e t=S t a n d a r d L i n u x F i l e S e t S t o r a g e=R e s t o r e F i l e S t o r a g e P o o l=F u l l P o o l P r i o r i t y=1 M e s s a g e s=S t a n d a r d W h e r e=/ t m p } #M a i nj o bd e f i n i t i o n su s e db yc l i e n t s/ e t c / b a c u l a / c l i e n t s . J o b D e f s{ N a m e=S t a n d a r d L i n u x J o b T y p e=B a c k u p F i l e S e t=S t a n d a r d L i n u x F i l e S e t S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e , Q u a t e r n a r y F i l e S t o r a g e P o o l=D e f a u l t P o o l #D e f a u l tP o o l ,o v e r i d d e np o o l sa n ds c h e d u l e s . F u l lB a c k u pP o o l=F u l l P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f I n c r e m e n t a lB a c k u pP o o l=I n c P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f D i f f e r e n t i a lB a c k u pP o o l=D i f f P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r e f e rM o u n t e dV o l u m e s=n o #F i n d i n ga nu n u s e dd r i v e ,o t h e r w i s e ,j o bs t a r t e dw i l la p p e n dt ov o l u m e . W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / b a c u l a b a c k u p s / % c . b s r " S c h e d u l e=P r i m a r y B a c k u p C y c l e #/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r i o r i t y=1 0 #T e ni sd e f a u l t M e s s a g e s=S t a n d a r d } J o b D e f s{ N a m e=S t a n d a r d W i n d o w s J o b T y p e=B a c k u p F i l e S e t=S t a n d a r d W i n d o w s F i l e S e t S t o r a g e=P r i m a r y F i l e S t o r a g e , S e c o n d a r y F i l e S t o r a g e , T e r t i a r y F i l e S t o r a g e , Q u a t e r n a r y F i l e S t o r a g e P o o l=D e f a u l t P o o l #D e f a u l tP o o l ,o v e r i d d e np o o l sa n ds c h e d u l e s . F u l lB a c k u pP o o l=F u l l P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f I n c r e m e n t a lB a c k u pP o o l=I n c P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f D i f f e r e n t i a lB a c k u pP o o l=D i f f P o o l #T h i st i e sw i t h/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r e f e rM o u n t e dV o l u m e s=n o #F i n d i n ga nu n u s e dd r i v e ,o t h e r w i s e ,j o bs t a r t e dw i l la p p e n dt ov o l u m e . W r i t eB o o t s t r a p=" / m n t / n f s n a s g w / b a c u l a b a c k u p s / % c . b s r " S c h e d u l e=P r i m a r y B a c k u p C y c l e #/ e t c / b a c u l a / c o n f . d / s c h e d u l e s . c o n f P r i o r i t y=1 0 #T e ni sd e f a u l t M e s s a g e s=S t a n d a r d }

conf.dmessages.conf
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 #T i m e s t a m p :< 2 0 1 2 0 3 3 0F r i1 0 : 3 1m e s s a g e s . c o n f > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ e t c / b a c u l a / c o n f . d / m e s s a g e s . c o n f# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #D e f i n ew h e r ee r r o ra n di n f o r m a t i o nm e s s a g e sa r et ob es e n to rl o g g e d . M e s s a g e s{ N a m e=S t a n d a r d m a i l c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l a :% t% eo f% c% l \ "% r " o p e r a t o r c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l a :I n t e r v e n t i o nn e e d e df o r% j \ "% r " m a i l=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l ,! s k i p p e d o p e r a t o r=b a c u l a b a c k u p @ e x a m p l e . c o m=m o u n t c o n s o l e=a l l ,! s k i p p e d ,! s a v e d c a t a l o g=a l l ,! s k i p p e d ,! s a v e d m a i l o n e r r o r=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l a p p e n d=" / v a r / l o g / b a c u l a / l o g "=a l l ,! s k i p p e d } M e s s a g e s{ N a m e=D a e m o n m a i l c o m m a n d=" / u s r / s b i n / b s m t phl o c a l h o s tfb a c u l a @ b a c u l a d i rs\ " B a c u l ad a e m o nm e s s a g e \ "% r " m a i l=b a c u l a b a c k u p @ e x a m p l e . c o m=a l l ,! s k i p p e d c o n s o l e=a l l ,! s k i p p e d ,! s a v e d a p p e n d=" / v a r / l o g / b a c u l a / l o g "=a l l ,! s k i p p e d }

3 other files aren't shown.

https://gist.github.com/mashdot/2312522

17/18

7/4/13

Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.

https://gist.github.com/mashdot/2312522

18/18

Das könnte Ihnen auch gefallen