Posts Tagged ‘Bacula’
Installing Bacula (Enterprise Backup System) With Webmin
Hello Everyone,
Today we are installing the “Bacula”, Bacula is the Enterprise Backup solution & more IMP it’s free.
“Bacula is an open source, enterprise level computer backup system for heterogeneous networks. It is designed to automate backup tasks that had often required intervention from a systems administrator or computer operator.
Bacula supports Linux, UNIX, Windows, and Mac OS X backup clients, and a range of professional backup devices including tape libraries. Administrators and operators can configure the system via a command line console, GUI or web interface; its back-end is a catalog of information stored by MySQL, PostgreSQL, or SQLite.”
–Source WIKI
Currently i am taking backup of more than 1.5TB data on my auto-loader
Let’s start Bacula installation
Installing bacula & mysql all together
yum install bacula-director-mysql bacula-console bacula-client bacula-storage-mysql mysql-server mysql-devel –y
[root@Bacula ~]# yum install bacula-director-mysql bacula-console bacula-client bacula-storage-mysql mysql-server mysql-devel -y
Loaded plugins: fastestmirror
Setting up Install Process
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:29
extras | 3.4 kB 00:00
extras/primary_db | 30 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.8 MB 00:13
Resolving Dependencies
–> Running transaction check
—> Package bacula-client.x86_64 0:5.0.0-12.el6 will be installed
–> Processing Dependency: bacula-common = 5.0.0-12.el6 for package: bacula-client-5.0.0-12.el6.x86_64
—> Package bacula-console.x86_64 0:5.0.0-12.el6 will be installed
—> Package bacula-director-mysql.x86_64 0:5.0.0-12.el6 will be installed
–> Processing Dependency: bacula-director-common = 5.0.0-12.el6 for package: bacula-director-mysql-5.0.0-12.el6.x 86_64
—> Package bacula-storage-mysql.x86_64 0:5.0.0-12.el6 will be installed
–> Processing Dependency: bacula-storage-common = 5.0.0-12.el6 for package: bacula-storage-mysql-5.0.0-12.el6.x86 _64
—> Package mysql-devel.x86_64 0:5.1.73-3.el6_5 will be installed
–> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-devel-5.1.73-3.el6_5.x86_64
–> Processing Dependency: openssl-devel for package: mysql-devel-5.1.73-3.el6_5.x86_64
—> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed
–> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(vars) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(strict) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(Sys::Hostname) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(POSIX) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(Getopt::Long) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(File::Temp) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(File::Path) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(File::Copy) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(File::Basename) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(Data::Dumper) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Processing Dependency: /usr/bin/perl for package: mysql-server-5.1.73-3.el6_5.x86_64
–> Running transaction check
—> Package bacula-common.x86_64 0:5.0.0-12.el6 will be installed
—> Package bacula-director-common.x86_64 0:5.0.0-12.el6 will be installed
–> Processing Dependency: perl(Logwatch) for package: bacula-director-common-5.0.0-12.el6.x86_64
–> Processing Dependency: logwatch for package: bacula-director-common-5.0.0-12.el6.x86_64
—> Package bacula-storage-common.x86_64 0:5.0.0-12.el6 will be installed
—> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed
—> Package openssl-devel.x86_64 0:1.0.1e-30.el6.8 will be installed
–> Processing Dependency: openssl = 1.0.1e-30.el6.8 for package: openssl-devel-1.0.1e-30.el6.8.x86_64
–> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-30.el6.8.x86_64
–> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-30.el6.8.x86_64
—> Package perl.x86_64 4:5.10.1-136.el6_6.1 will be installed
–> Processing Dependency: perl-libs = 4:5.10.1-136.el6_6.1 for package: 4:perl-5.10.1-136.el6_6.1.x86_64
–> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6_6.1.x86_64
–> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
–> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
–> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
–> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
—> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
—> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
–> Running transaction check
—> Package krb5-devel.x86_64 0:1.10.3-37.el6_6 will be installed
–> Processing Dependency: krb5-libs = 1.10.3-37.el6_6 for package: krb5-devel-1.10.3-37.el6_6.x86_64
–> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-37.el6_6.x86_64
–> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-37.el6_6.x86_64
–> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-37.el6_6.x86_64
—> Package logwatch.noarch 0:7.3.6-52.el6 will be installed
–> Processing Dependency: perl(Date::Manip) for package: logwatch-7.3.6-52.el6.noarch
–> Processing Dependency: mailx for package: logwatch-7.3.6-52.el6.noarch
—> Package openssl.x86_64 0:1.0.1e-30.el6 will be updated
—> Package openssl.x86_64 0:1.0.1e-30.el6.8 will be an update
—> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6_6.1 will be installed
—> Package perl-Pod-Simple.x86_64 1:3.13-136.el6_6.1 will be installed
–> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64
—> Package perl-libs.x86_64 4:5.10.1-136.el6_6.1 will be installed
—> Package perl-version.x86_64 3:0.77-136.el6_6.1 will be installed
—> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
–> Running transaction check
—> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed
—> Package krb5-libs.x86_64 0:1.10.3-33.el6 will be updated
—> Package krb5-libs.x86_64 0:1.10.3-37.el6_6 will be an update
—> Package libcom_err-devel.x86_64 0:1.41.12-21.el6 will be installed
—> Package libselinux-devel.x86_64 0:2.0.94-5.8.el6 will be installed
–> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-5.8.el6.x86_64
–> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-5.8.el6.x86_64
—> Package mailx.x86_64 0:12.4-8.el6_6 will be installed
—> Package perl-Date-Manip.noarch 0:6.24-1.el6 will be installed
–> Processing Dependency: perl(YAML::Syck) for package: perl-Date-Manip-6.24-1.el6.noarch
—> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6_6.1 will be installed
–> Running transaction check
—> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
—> Package perl-YAML-Syck.x86_64 0:1.07-4.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
bacula-client x86_64 5.0.0-12.el6 base 176 k
bacula-console x86_64 5.0.0-12.el6 base 110 k
bacula-director-mysql x86_64 5.0.0-12.el6 base 416 k
bacula-storage-mysql x86_64 5.0.0-12.el6 base 356 k
mysql-devel x86_64 5.1.73-3.el6_5 base 129 k
mysql-server x86_64 5.1.73-3.el6_5 base 8.6 M
Installing for dependencies:
bacula-common x86_64 5.0.0-12.el6 base 360 k
bacula-director-common x86_64 5.0.0-12.el6 base 136 k
bacula-storage-common x86_64 5.0.0-12.el6 base 496 k
keyutils-libs-devel x86_64 1.4-5.el6 base 29 k
krb5-devel x86_64 1.10.3-37.el6_6 updates 499 k
libcom_err-devel x86_64 1.41.12-21.el6 base 32 k
libselinux-devel x86_64 2.0.94-5.8.el6 base 137 k
libsepol-devel x86_64 2.0.41-4.el6 base 64 k
logwatch noarch 7.3.6-52.el6 base 302 k
mailx x86_64 12.4-8.el6_6 updates 235 k
mysql x86_64 5.1.73-3.el6_5 base 894 k
openssl-devel x86_64 1.0.1e-30.el6.8 updates 1.2 M
perl x86_64 4:5.10.1-136.el6_6.1 updates 10 M
perl-DBD-MySQL x86_64 4.013-3.el6 base 134 k
perl-DBI x86_64 1.609-4.el6 base 705 k
perl-Date-Manip noarch 6.24-1.el6 base 1.4 M
perl-Module-Pluggable x86_64 1:3.90-136.el6_6.1 updates 40 k
perl-Pod-Escapes x86_64 1:1.04-136.el6_6.1 updates 32 k
perl-Pod-Simple x86_64 1:3.13-136.el6_6.1 updates 212 k
perl-YAML-Syck x86_64 1.07-4.el6 base 75 k
perl-libs x86_64 4:5.10.1-136.el6_6.1 updates 578 k
perl-version x86_64 3:0.77-136.el6_6.1 updates 51 k
zlib-devel x86_64 1.2.3-29.el6 base 44 k
Updating for dependencies:
krb5-libs x86_64 1.10.3-37.el6_6 updates 766 k
openssl x86_64 1.0.1e-30.el6.8 updates 1.5 M
Transaction Summary
==================================================================================================================
Install 29 Package(s)
Upgrade 2 Package(s)
Total download size: 30 M
Downloading Packages:
(1/31): bacula-client-5.0.0-12.el6.x86_64.rpm | 176 kB 00:01
(2/31): bacula-common-5.0.0-12.el6.x86_64.rpm | 360 kB 00:03
(3/31): bacula-console-5.0.0-12.el6.x86_64.rpm | 110 kB 00:00
(4/31): bacula-director-common-5.0.0-12.el6.x86_64.rpm | 136 kB 00:00
(5/31): bacula-director-mysql-5.0.0-12.el6.x86_64.rpm | 416 kB 00:03
(6/31): bacula-storage-common-5.0.0-12.el6.x86_64.rpm | 496 kB 00:02
(7/31): bacula-storage-mysql-5.0.0-12.el6.x86_64.rpm | 356 kB 00:02
(8/31): keyutils-libs-devel-1.4-5.el6.x86_64.rpm | 29 kB 00:00
(9/31): krb5-devel-1.10.3-37.el6_6.x86_64.rpm | 499 kB 00:02
(10/31): krb5-libs-1.10.3-37.el6_6.x86_64.rpm | 766 kB 00:04
(11/31): libcom_err-devel-1.41.12-21.el6.x86_64.rpm | 32 kB 00:00
(12/31): libselinux-devel-2.0.94-5.8.el6.x86_64.rpm | 137 kB 00:00
(13/31): libsepol-devel-2.0.41-4.el6.x86_64.rpm | 64 kB 00:00
(14/31): logwatch-7.3.6-52.el6.noarch.rpm | 302 kB 00:01
(15/31): mailx-12.4-8.el6_6.x86_64.rpm | 235 kB 00:01
(16/31): mysql-5.1.73-3.el6_5.x86_64.rpm | 894 kB 00:04
(17/31): mysql-devel-5.1.73-3.el6_5.x86_64.rpm | 129 kB 00:00
(18/31): mysql-server-5.1.73-3.el6_5.x86_64.rpm | 8.6 MB 00:50
(19/31): openssl-1.0.1e-30.el6.8.x86_64.rpm | 1.5 MB 00:01
(20/31): openssl-devel-1.0.1e-30.el6.8.x86_64.rpm | 1.2 MB 00:02
(21/31): perl-5.10.1-136.el6_6.1.x86_64.rpm | 10 MB 00:19
(22/31): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm | 134 kB 00:00
(23/31): perl-DBI-1.609-4.el6.x86_64.rpm | 705 kB 00:01
(24/31): perl-Date-Manip-6.24-1.el6.noarch.rpm | 1.4 MB 00:02
(25/31): perl-Module-Pluggable-3.90-136.el6_6.1.x86_64.rpm | 40 kB 00:00
(26/31): perl-Pod-Escapes-1.04-136.el6_6.1.x86_64.rpm | 32 kB 00:00
(27/31): perl-Pod-Simple-3.13-136.el6_6.1.x86_64.rpm | 212 kB 00:01
(28/31): perl-YAML-Syck-1.07-4.el6.x86_64.rpm | 75 kB 00:00
(29/31): perl-libs-5.10.1-136.el6_6.1.x86_64.rpm | 578 kB 00:02
(30/31): perl-version-0.77-136.el6_6.1.x86_64.rpm | 51 kB 00:00
(31/31): zlib-devel-1.2.3-29.el6.x86_64.rpm | 44 kB 00:00
——————————————————————————————————————
Total 245 kB/s | 30 MB 02:03
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]>
Package: centos-release-6-6.el6.centos.12.2.x86_64 (@anaconda-CentOS-201410241409.x86_64/6.6)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : krb5-libs-1.10.3-37.el6_6.x86_64 1/33
Updating : openssl-1.0.1e-30.el6.8.x86_64 2/33
Installing : bacula-common-5.0.0-12.el6.x86_64 3/33
Installing : bacula-storage-mysql-5.0.0-12.el6.x86_64 4/33
Installing : bacula-storage-common-5.0.0-12.el6.x86_64 5/33
Installing : mailx-12.4-8.el6_6.x86_64 6/33
Installing : 1:perl-Pod-Escapes-1.04-136.el6_6.1.x86_64 7/33
Installing : 3:perl-version-0.77-136.el6_6.1.x86_64 8/33
Installing : 4:perl-libs-5.10.1-136.el6_6.1.x86_64 9/33
Installing : 1:perl-Module-Pluggable-3.90-136.el6_6.1.x86_64 10/33
Installing : 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64 11/33
Installing : 4:perl-5.10.1-136.el6_6.1.x86_64 12/33
Installing : mysql-5.1.73-3.el6_5.x86_64 13/33
Installing : perl-DBI-1.609-4.el6.x86_64 14/33
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 15/33
Installing : perl-YAML-Syck-1.07-4.el6.x86_64 16/33
Installing : perl-Date-Manip-6.24-1.el6.noarch 17/33
Installing : logwatch-7.3.6-52.el6.noarch 18/33
Installing : bacula-director-mysql-5.0.0-12.el6.x86_64 19/33
Installing : bacula-director-common-5.0.0-12.el6.x86_64 20/33
Installing : libsepol-devel-2.0.41-4.el6.x86_64 21/33
Installing : libselinux-devel-2.0.94-5.8.el6.x86_64 22/33
Installing : libcom_err-devel-1.41.12-21.el6.x86_64 23/33
Installing : keyutils-libs-devel-1.4-5.el6.x86_64 24/33
Installing : krb5-devel-1.10.3-37.el6_6.x86_64 25/33
Installing : zlib-devel-1.2.3-29.el6.x86_64 26/33
Installing : openssl-devel-1.0.1e-30.el6.8.x86_64 27/33
Installing : mysql-devel-5.1.73-3.el6_5.x86_64 28/33
Installing : mysql-server-5.1.73-3.el6_5.x86_64 29/33
Installing : bacula-client-5.0.0-12.el6.x86_64 30/33
Installing : bacula-console-5.0.0-12.el6.x86_64 31/33
Cleanup : openssl-1.0.1e-30.el6.x86_64 32/33
Cleanup : krb5-libs-1.10.3-33.el6.x86_64 33/33
Verifying : perl-Date-Manip-6.24-1.el6.noarch 1/33
Verifying : bacula-client-5.0.0-12.el6.x86_64 2/33
Verifying : mysql-5.1.73-3.el6_5.x86_64 3/33
Verifying : openssl-devel-1.0.1e-30.el6.8.x86_64 4/33
Verifying : perl-DBI-1.609-4.el6.x86_64 5/33
Verifying : 1:perl-Pod-Escapes-1.04-136.el6_6.1.x86_64 6/33
Verifying : mysql-devel-5.1.73-3.el6_5.x86_64 7/33
Verifying : 3:perl-version-0.77-136.el6_6.1.x86_64 8/33
Verifying : bacula-console-5.0.0-12.el6.x86_64 9/33
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 10/33
Verifying : bacula-director-mysql-5.0.0-12.el6.x86_64 11/33
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 12/33
Verifying : bacula-common-5.0.0-12.el6.x86_64 13/33
Verifying : 4:perl-libs-5.10.1-136.el6_6.1.x86_64 14/33
Verifying : zlib-devel-1.2.3-29.el6.x86_64 15/33
Verifying : 1:perl-Module-Pluggable-3.90-136.el6_6.1.x86_64 16/33
Verifying : bacula-storage-mysql-5.0.0-12.el6.x86_64 17/33
Verifying : krb5-devel-1.10.3-37.el6_6.x86_64 18/33
Verifying : openssl-1.0.1e-30.el6.8.x86_64 19/33
Verifying : krb5-libs-1.10.3-37.el6_6.x86_64 20/33
Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 21/33
Verifying : 4:perl-5.10.1-136.el6_6.1.x86_64 22/33
Verifying : libcom_err-devel-1.41.12-21.el6.x86_64 23/33
Verifying : mailx-12.4-8.el6_6.x86_64 24/33
Verifying : bacula-director-common-5.0.0-12.el6.x86_64 25/33
Verifying : libsepol-devel-2.0.41-4.el6.x86_64 26/33
Verifying : bacula-storage-common-5.0.0-12.el6.x86_64 27/33
Verifying : 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64 28/33
Verifying : logwatch-7.3.6-52.el6.noarch 29/33
Verifying : libselinux-devel-2.0.94-5.8.el6.x86_64 30/33
Verifying : perl-YAML-Syck-1.07-4.el6.x86_64 31/33
Verifying : openssl-1.0.1e-30.el6.x86_64 32/33
Verifying : krb5-libs-1.10.3-33.el6.x86_64 33/33
Installed:
bacula-client.x86_64 0:5.0.0-12.el6 bacula-console.x86_64 0:5.0.0-12.el6
bacula-director-mysql.x86_64 0:5.0.0-12.el6 bacula-storage-mysql.x86_64 0:5.0.0-12.el6
mysql-devel.x86_64 0:5.1.73-3.el6_5 mysql-server.x86_64 0:5.1.73-3.el6_5
Dependency Installed:
bacula-common.x86_64 0:5.0.0-12.el6 bacula-director-common.x86_64 0:5.0.0-12.el6
bacula-storage-common.x86_64 0:5.0.0-12.el6 keyutils-libs-devel.x86_64 0:1.4-5.el6
krb5-devel.x86_64 0:1.10.3-37.el6_6 libcom_err-devel.x86_64 0:1.41.12-21.el6
libselinux-devel.x86_64 0:2.0.94-5.8.el6 libsepol-devel.x86_64 0:2.0.41-4.el6
logwatch.noarch 0:7.3.6-52.el6 mailx.x86_64 0:12.4-8.el6_6
mysql.x86_64 0:5.1.73-3.el6_5 openssl-devel.x86_64 0:1.0.1e-30.el6.8
perl.x86_64 4:5.10.1-136.el6_6.1 perl-DBD-MySQL.x86_64 0:4.013-3.el6
perl-DBI.x86_64 0:1.609-4.el6 perl-Date-Manip.noarch 0:6.24-1.el6
perl-Module-Pluggable.x86_64 1:3.90-136.el6_6.1 perl-Pod-Escapes.x86_64 1:1.04-136.el6_6.1
perl-Pod-Simple.x86_64 1:3.13-136.el6_6.1 perl-YAML-Syck.x86_64 0:1.07-4.el6
perl-libs.x86_64 4:5.10.1-136.el6_6.1 perl-version.x86_64 3:0.77-136.el6_6.1
zlib-devel.x86_64 0:1.2.3-29.el6
Dependency Updated:
krb5-libs.x86_64 0:1.10.3-37.el6_6 openssl.x86_64 0:1.0.1e-30.el6.8
Complete!
Start mysql Service
service mysqld start
chkconfig mysqld on
assign password to mysql ( root123)
mysqladmin -u root password root123
Creating necessary databases for Bacula
/usr/libexec/bacula/grant_mysql_privileges -u root -p
[root@Bacula ~]# /usr/libexec/bacula/grant_mysql_privileges -u root -p
Enter password:
Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv ssl_type ssl_cipher x509_issuer x509_subjectmax_questions max_updates max_connections max_user_connections
localhost root *FAAFFE644E901CFAFAEC7562415E5FAEC243B8B2 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y 0 0 0 0
bacula.local root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y 0 0 0 0
127.0.0.1 root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y 0 0 0 0
localhost N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
- local N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
- localhost bacula N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
- % bacula N N N N N N N N N N N N N N N N N N N N N N NN N N N N 0 0 0 0
Privileges for user bacula granted on database bacula.
/usr/libexec/bacula/create_mysql_database -u root –p
[root@Bacula ~]# /usr/libexec/bacula/create_mysql_database -u root -p
Enter password:
Creation of bacula database succeeded.
/usr/libexec/bacula/make_mysql_tables -u root –p
[root@Bacula ~]# /usr/libexec/bacula/make_mysql_tables -u root -p
Enter password:
Creation of Bacula MySQL tables succeeded.
/usr/libexec/bacula/grant_bacula_privileges -u root –p
[root@Bacula ~]# /usr/libexec/bacula/grant_bacula_privileges -u root -p
Granting MySQL privileges
Enter password:
Host User Password Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_priv File_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_priv Lock_tables_priv Execute_priv Repl_slave_priv Repl_client_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Create_user_priv Event_priv Trigger_priv ssl_type ssl_cipher x509_issuer x509_subjectmax_questions max_updates max_connections max_user_connections
localhost root *FAAFFE644E901CFAFAEC7562415E5FAEC243B8B2 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y 0 0 0 0
bacula.local root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y 0 0 0 0
127.0.0.1 root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y 0 0 0 0
localhost N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
bacula.local N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
localhost bacula N N N N N N N N N N N N N N N N N N N N N NN N N N N N 0 0 0 0
% bacula N N N N N N N N N N N N N N N N N N N N N N NN N N N N 0 0 0 0
Privileges for user bacula granted on database bacula.
set bacula user password on MySQL.
mysql -u root –p
[root@Bacula ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 30
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
Type below command
mysql> UPDATE mysql.user SET password=PASSWORD(“root123”) WHERE user=’bacula’;
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
Update all Bacula configuration files with new password and addresses
Edit file /etc/bacula/bacula-dir.conf,
[root@Bacula ~]# vi /etc/bacula/bacula-dir.conf
[…]
Director { # define myself
Name = bacula-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = “/usr/libexec/bacula/query.sql”
WorkingDirectory = “/var/spool/bacula”
PidDirectory = “/var/run”
Maximum Concurrent Jobs = 1
Password = “root123” # Console password
Messages = Daemon
[…]
# Client (File Services) to backup
Client {
Name = bacula-fd
Address = 192.168.0.50
FDPort = 9102
Catalog = MyCatalog
Password = “root123” # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definition of file storage device
Storage {
Name = File
# Do not use “localhost” here
Address = 192.168.0.50 # N.B. Use a fully qualified name here
SDPort = 9103
Password = “root123”
Device = FileStorage
Media Type = File
}
[…]
# Generic catalog service
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = “dbi:sqlite3”; dbaddress = 127.0.0.1; dbport =
dbname = “bacula”; dbuser = “bacula”; dbpassword = “root123”
}
[…]
Console {
Name = bacula-mon
Password = “root123”
CommandACL = status, .status
}
Edit file /etc/bacula/bconsole.conf,
[root@Bacula ~]# vi /etc/bacula/bconsole.conf
#
# Bacula User Agent (or Console) Configuration File
#
Director {
Name = bacula-dir
DIRport = 9101
address = localhost
Password = “root123”
}
Update Storage
Edit file /etc/bacula/bacula-sd.conf,
Director {
Name = bacula-dir
Password = “root123”
}
Delete following lines
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = bacula-mon
Password = “@@MON_SD_PASSWORD@@”
Monitor = yes
}
Add the backup folder
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp/mybackup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Now create mybackup folder in /tmp
[root@Bacula tmp]# mkdir mybackup
[root@Bacula tmp]# chown root.bacula mybackup/
[root@Bacula tmp]# ll
total 4
drwxr-xr-x. 2 root bacula 4096 Apr 22 14:19 mybackup
-rw——-. 1 root root 0 Apr 22 11:55 yum.log
Next restart all bacula daemons and make them to start automatically on every reboot
[root@Bacula tmp]# service bacula-dir start
Starting bacula-dir: [ OK ]
[root@Bacula tmp]# service bacula-fd start
Starting bacula-fd: [ OK ]
[root@Bacula tmp]# service bacula-sd start
Starting bacula-sd: [ OK ]
[root@Bacula tmp]# chkconfig bacula-dir on
[root@Bacula tmp]# chkconfig bacula-fd on
[root@Bacula tmp]# chkconfig bacula-sd on
[root@Bacula tmp]#
Now there is one more thing we have to open bacula’s require ports in iptables
[root@Bacula ~]# vi /etc/sysconfig/iptables
-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 9101 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 9102 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 9103 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 10000 -j ACCEPT
We have opened the 10000 port because we are going to install “webmin” to mamage bacula using GUI
Bacula has been successfully installed
Now we are rebooting the server & checking it’s working fine or not
Type “bconsole “ if you will get ”*” then your configuration is correct
[root@Bacula ~]# bconsole
Connecting to Director 192.168.0.50:9101
1000 OK: bacula-dir Version: 5.0.0 (26 January 2010)
Enter a period to cancel a command.
*
Type exit to console
Now installing webmin to manage bacula
# wget http://sourceforge.net/projects/webadmin/files/webmin/1.660/webmin-1.660-1.noarch.rpm
# rpm -Uvh webmin-1.660-1.noarch.rpm
# service webmin start
# chkconfig webmin on
Access webmin “//http://server-ip-address:10000″ or “http://domain-name:10000/”.
Click on system –> Bacula backup system–> module configuration–>Next
Select database type “MYSQL” & enter your password
Now here your Bacula web-console
It’s Done….
–Sachin.