This guide covers the installation of the Bareos Client in it's most common form, for file backup or also known as a FileDaemon (bareos-fd). It goes through the process of installing the client and testing whether it works. I will post an installation guide for Bareos Client for database backup and as a storage node (StorageDaemon) some time in the future.
First, there are several assumptions taken.
First, there are several assumptions taken.
- No Bareos client or anoy other component installed previously. Install client to backup files only.
- Focus is on installation via packages so that updates packages are applied as they come out. Particularly useful if your organization validates updates prior to roll-out.
Server-side configuration is using Webmin via the Bacula module (in Webmin: System --> Backup)This is no longer possible with newer versions of Bareos. Refer to to this updated post on Bareos client configuration for newer instructions.
- The hostname or IP address of the client or machine to be backed up. We'll call this the Client.
- The name that will be given to the Client in the Bareos system. Usually Client-fd
- The name of Director in the Bareos system.
- Add Bareos repository on the client / target server.
- Refer to quickstart information in official documentation for your Distro specific instruction
- For RedHat, it's basically
- add the Bareos yum repository. The repositories are here. Make sure the client version matches the Bareos server version. Choose the version of RedHat or CentOS for the target server. Download the bareos.repo file to /etc/yum.repos.d
- If you haven't added the Epel repository, add the repository. Instructions are here.
- do a yum check-update to update the repositories to load them
- Install Bareos filedaemon. For Redhat: yum install bareos-filedaemon
- Configure the client by editing the /etc/bareos/bareos-fd.conf file
- Set Bareos server / Director name in Director section, entry "Name = "
- Make note of
- FileDaemon name - set the entry "Name =" in FileDaemon section
- Director password - create a password and set the entry "Password =" in the Director section. Make this long and complicated because this will not be used by users.
- Start the FileDaemon / Bareos Client: service bareos-fd start
- Open the Bareos Client port (tcp port 9102) on the firewall, if necessary
Configure Bareos server via WebminCreate clientSystem => Bacula backup, Backup Clients, Add new backup clientEnterClient name = FileDaemon name (from step 3.2)Bacula FD Password = Director Password (replace the automactically generated one)SaveConfirm setup client okBackup Clients, select client, Show StatusCorrect response : Status from <client hostname> : <Client name>-fd Version: <bareos version>Setup job to backup files on the clientBackup Jobs, Add a new backup jobEnter job name: eg hostname-filesSet "Inherit defaults" to "DefaultJob"Set Client to backup = Client nameSet File Set to backup = SelfTestSet Destination Storage = <storage> e.g. "File"Test backupBackup Jobs, select Job nameclick Run NowMessages will appear. Test successful when the last message is "Termination: Backup OK"Create a backup job for the client with the correct fileset.
No comments:
Post a Comment