From 3382cbc24ed53633d1f80cb82ae397ad8b0ad6c9 Mon Sep 17 00:00:00 2001 From: Mark Chaney Date: Wed, 17 Jul 2019 22:35:47 -0500 Subject: [PATCH 1/3] Changed some descriptions and unified ip's Found that if the server1.conf had header comments, the bacula-dir.sh file could not properly read them. Also unified some of the ip's to make it easier to understand. Added symlink commands. --- README.md | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 548e2c2..f9ea405 100644 --- a/README.md +++ b/README.md @@ -143,14 +143,20 @@ The client's configured. Now return to the Director to add the client profile, cd /etc/bacula/local.d/servers/ cp 1/self.conf 2/server-1.conf nano 2/server-1.conf -# Edit Name = self, Password = "XYZ", Address = "127.0.0.1" -# New configuration should look like -# Client { -# Name = server-1 -# Password = "foo/bar+baz" -# Address = "43.2.1.5" -# FileSet = "Client-Layer" -# } +``` + +Update Name, Password, and Address with information of the client you wish to backup. Example: + +```bash +Client { + Name = server-1 + Password = "foo/bar+baz" + Address = "61.2.12.11" + FileSet = "Client-Layer" + } +``` + +```bash systemctl restart bacula-dir ``` @@ -167,6 +173,11 @@ Clone repository and install supplemental RPMs. ```bash git clone https://github.com/apisnetworks/apnscp-bacula yum install -y bacula-director bacula-client bacula-storage bacula-console +cp -a apnscp-bacula/conf/* /etc/bacula/ +cd /etc/bacula/ +ln -s bconsole-apnscp.conf bconsole.conf +ln -s bacula-sd-apnscp.conf bacula-sd.conf +ln -s bacula-dir-apnscp.conf bacula-dir.conf systemctl enable bacula-sd bacula-dir ``` @@ -217,7 +228,7 @@ systemctl enable bacula-sd bacula-dir bacula-fd ### File Daemon manual installation -For each device whitelist firewall using firewall-cmd. +For each device, whitelist the Director IP address in the firewall using firewall-cmd. ```bash -firewall-cmd --permanent --zone=public --add-source=192.168.100.1 +firewall-cmd --permanent --zone=public --add-source=43.2.1.5 ``` From 69be433a1571e134c4ac691e1d6483a945b6416c Mon Sep 17 00:00:00 2001 From: Mark Chaney Date: Wed, 17 Jul 2019 23:15:56 -0500 Subject: [PATCH 2/3] Added missing db privs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9ea405..8440fc2 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ Create a database to store backup metadata, ```bash # Create database + grants -echo "CREATE DATABASE bacula; CREATE USER bacula@localhost IDENTIFIED BY 'somepassword';" | mysql +echo "CREATE DATABASE bacula; CREATE USER bacula@localhost IDENTIFIED BY 'somepassword';GRANT ALL PRIVILEGES ON bacula.* TO 'bacula'@'localhost';" | mysql # Populate database env db_name=bacula /usr/libexec/bacula/make_bacula_tables mysql ``` From 2cb4e5ad4dea306d9b0fa0b4624a8d338259eb62 Mon Sep 17 00:00:00 2001 From: Mark Chaney Date: Thu, 18 Jul 2019 02:30:37 -0500 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8440fc2..ff3c859 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ systemctl enable bacula-sd bacula-dir bacula-fd ### File Daemon manual installation -For each device, whitelist the Director IP address in the firewall using firewall-cmd. +On the File Daemon server, whitelist the ip of every bacula client using firewall-cmd. ```bash -firewall-cmd --permanent --zone=public --add-source=43.2.1.5 +firewall-cmd --permanent --zone=public --add-source=61.2.12.11 ```