< User:Renich | HowTo
(first draft) |
|||
Line 52: | Line 52: | ||
=== Configuring the clients === | === Configuring the clients === | ||
+ | * Install the bacula client | ||
+ | <pre>su -c 'yum install bacula-client'</pre> | ||
+ | * Configure the client's and monitor's names, addresses and passwords. These ones need to be present in the server configuration so, keep track of the passwords and names. | ||
+ | <pre># | ||
+ | # Default Bacula File Daemon Configuration file | ||
+ | # | ||
+ | # For Bacula release 3.0.3 (18 October 2009) -- redhat | ||
+ | # | ||
+ | # There is not much to change here except perhaps the | ||
+ | # File daemon Name to | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # List Directors who are permitted to contact this File daemon | ||
+ | # | ||
+ | Director { | ||
+ | Name = bacula-dir | ||
+ | Password = "fd_password" # change to a nice and strong password here | ||
+ | } | ||
+ | |||
+ | # | ||
+ | # Restricted Director, used by tray-monitor to get the | ||
+ | # status of the file daemon | ||
+ | # | ||
+ | Director { | ||
+ | Name = bacula-mon | ||
+ | Password = "mon_fd_password" # change to a nice and strong password here | ||
+ | Monitor = yes | ||
+ | } | ||
+ | |||
+ | # | ||
+ | # "Global" File daemon configuration specifications | ||
+ | # | ||
+ | FileDaemon { # this is me | ||
+ | Name = bacula-fd | ||
+ | FDport = 9102 # where we listen for the director | ||
+ | WorkingDirectory = /var/spool/bacula | ||
+ | Pid Directory = /var/run | ||
+ | Maximum Concurrent Jobs = 20 | ||
+ | } | ||
+ | |||
+ | # Send all messages except skipped files back to Director | ||
+ | Messages { | ||
+ | Name = Standard | ||
+ | director = bacula-dir = all, !skipped, !restored | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | + Open up the relevant firewall port; in this case, 9102 | ||
+ | <pre>su -c 'iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT'</pre> | ||
== Troubleshooting== | == Troubleshooting== |
Revision as of 01:05, 28 January 2010
Bacula basic configuration
Description
Bacula is an enterprise-grade backup utility. This HowTo explains how to set up bacula
on Fedora while respecting Fedora's configuration way.
Applicable to Fedora Versions
- Fedora 12
Requirements
Bacula supports a few database backends, so, you will need to choose one. On this document, I will choose the mysql backend. Clients do not need a database backend.
Also, you will need to decide which console(s) you want and configure them. I will choose the commandline console.
Storage, database and director could be distributed but, in this case, everything will be managed on the same server.
Server requirements
bacula-common
bacula-console
bacula-director-common
bacula-director-mysql
bacula-sysconfdir
bacula-storage-common
bacula-storage-mysql
Client's requirements
bacula-client
Doing the Work
Configuring the server
- Install mysql-server:
su -c 'yum install mysql-server'
- Install the relevant bacula packages
su -c 'yum install bacula-common \ bacula-console bacula-director-common \ bacula-director-mysql bacula-storage-common \ bacula-storage-mysql bacula-sysconfdir'
- Start the mysql server
su -c 'service mysql start'
- Create the database
- Grant privileges to the bacula user
- Create the necessary tables
Configuring the clients
- Install the bacula client
su -c 'yum install bacula-client'
- Configure the client's and monitor's names, addresses and passwords. These ones need to be present in the server configuration so, keep track of the passwords and names.
# # Default Bacula File Daemon Configuration file # # For Bacula release 3.0.3 (18 October 2009) -- redhat # # There is not much to change here except perhaps the # File daemon Name to # # # List Directors who are permitted to contact this File daemon # Director { Name = bacula-dir Password = "fd_password" # change to a nice and strong password here } # # Restricted Director, used by tray-monitor to get the # status of the file daemon # Director { Name = bacula-mon Password = "mon_fd_password" # change to a nice and strong password here Monitor = yes } # # "Global" File daemon configuration specifications # FileDaemon { # this is me Name = bacula-fd FDport = 9102 # where we listen for the director WorkingDirectory = /var/spool/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } # Send all messages except skipped files back to Director Messages { Name = Standard director = bacula-dir = all, !skipped, !restored }
+ Open up the relevant firewall port; in this case, 9102
su -c 'iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT'
Troubleshooting
How to test
Common problems and fixes
More Information
Disclaimer
I haven't had the opportunity to test this HowTo since I lack of a networked PC to do it, so you may run into problems, if you do, come to #fedora on irc.freenode.net or leave me messages so I know what's up. Feel free to propose changes and stuff.