From 2f607a2b0ebd177feafd4d353aaf344b8b6a5418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:15:16 -0300 Subject: Update master --- config/bacula-client/bacula-client.inc | 112 ++++++++++++++------------------- 1 file changed, 48 insertions(+), 64 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client.inc b/config/bacula-client/bacula-client.inc index 7cb27b1f..fd6e2d65 100644 --- a/config/bacula-client/bacula-client.inc +++ b/config/bacula-client/bacula-client.inc @@ -1,6 +1,6 @@ 0 - $baculaclient_conf .= "Director { \n\t Name = $bc['director']-mon #$bc['description']\n\t Password = ".'"'.$bc['password'].'"'."\n\t Monitor = yes\n}\n"; - if $bc['type'] = 1 - $LocalDirector = $bc['director'] - } + if (strcmp($bc['type'],"0")) { + $baculaclient_conf .= "Director { \n\t Name = ".$bc['director']."-dir #".$bc['description']."\n\t Password = ".'"'.$bc['password'].'"'."\n}\n"; + } + if (strcmp($bc['type'],"2")){ + $baculaclient_conf .= "Director { \n\t Name = ".$bc['director']."-mon #".$bc['description']."\n\t Password = ".'"'.$bc['password'].'"'."\n\t Monitor = yes\n}\n"; + } + if (strcmp($bc['type'],"1")){ + $baculaclient_conf .= "Director { \n\t Name = ".$bc['director']."-dir #".$bc['description']."\n\t Password = ".'"'.$bc['password'].'"'."\n}\n"; + $baculaclient_conf .= "Director { \n\t Name = ".$bc['director']."-mon #".$bc['description']."\n\t Password = ".'"'.$bc['password'].'"'."\n\t Monitor = yes\n}\n"; + $LocalDirector = $bc['director']; + } } + // create Messages $baculaclient_conf .= "Messages { \n\t Name = Standard \n\t director = ".$LocalDirector."-dir = all, !skipped, !restored\n\t \n}\n"; // create FielDaemon - $port = $config['installedpackages']['bacula-client']['config'][0]['port']; - $dir = $config['installedpackages']['bacula-client']['config'][0]['dir']; - $jobs = $config['installedpackages']['bacula-client']['config'][0]['jobs'] - $baculaclient_conf .= "FileDaemon { \n\t Name = $filedaemon-fd #\n\t FDport = $port\n\t WorkingDirectory = $dir\n\t Maximun Concurrent Jobs = $jobs\n \n}\n"; + $port = $config['installedpackages']['baculaclient']['config'][0]['port']; + $jobs = $config['installedpackages']['baculaclient']['config'][0]['jobs']; + $baculaclient_conf .= "FileDaemon { \n\t Name = ".$filedaemon."-fd #\n\t FDport = ".$port."\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\t Maximun Concurrent Jobs = ".$jobs."\n \n}\n"; fwrite($fd, $baculaclient_conf); fclose($fd); } + + exec("/usr/local/etc/rc.d/bacula-client.sh start"); } // Mount Read-only -- cgit v1.2.3 From b32cfc4c34bb9dcddd4ad0f13b11d607fa9397ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:15:44 -0300 Subject: Update master --- config/bacula-client/bacula-client.xml | 94 ++++++++++++---------------------- 1 file changed, 33 insertions(+), 61 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client.xml b/config/bacula-client/bacula-client.xml index 965e2b60..34eee65e 100644 --- a/config/bacula-client/bacula-client.xml +++ b/config/bacula-client/bacula-client.xml @@ -1,60 +1,35 @@ - - - - - - - Client Install for Bacula 5.2.6 Backup - Bacula Server Installed in or network - Currently there are no FAQ items provided. - bacula-client + + Copyright (C) 2012 Marcio Carlos Braga Antao + Client Install for Bacula 5.2.6 Backup + Bacula Server Installed in or network + Currently there are no FAQ items provided. + baculaclient 5.2.6 - Bacula-Client Setting - pkg_edit.php?xml=bacula-client.xml&id=0 + Bacula-Client: Setting + /pkg_edit.php?xml=bacula-client.xml&id=0 /usr/local/pkg/bacula-client.inc + installedpackages->package->baculaclient /usr/local/pkg/ 0755 - http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc + http://10.197.93.13/packages/config/bacula-client/bacula-client.inc + + + /usr/local/pkg/ + 0755 + http://10.197.93.13/packages/config/bacula-client/bacula-client_fd.xml + + + /usr/local/www/ + 0755 + http://10.197.93.13/packages/config/bacula-client/bacula-client_view_config.php - Bacula-Client - + Bacula-client + bacula backup client
Services
- /pkg_edit.php?xml=bacula-client.xml&id=0 + bacula-client.xml
@@ -64,8 +39,8 @@ FileDaemon - /pkg.php?xml=bacula-client-fd.xml - + /pkg_edit.php?xml=bacula-client_fd.xml&id=0 + View Configuration @@ -89,8 +64,8 @@ listtopic - temp - File configuration + directors + Directors Director Name @@ -112,7 +87,7 @@ password input 30 - + @@ -120,28 +95,25 @@ type select - - - - + + + This is a Local Director? - bacula-client_custom_php_install_command(); + baculaclient_custom_php_install_command(); - bacula-client_settings_post_validate($_POST, &$input_errors); - bacula-client_custom_php_write_config() - bacula-client_custom_php_write_config() + baculaclient_custom_php_write_config();
\ No newline at end of file -- cgit v1.2.3 From bfbcc8a58d7e458ff514f8336ce533692db74477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:16:25 -0300 Subject: Update master --- config/bacula-client/bacula-client_fd.xml | 88 +++++++++---------------------- 1 file changed, 25 insertions(+), 63 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client_fd.xml b/config/bacula-client/bacula-client_fd.xml index 98c2dbec..c1b3c8cd 100644 --- a/config/bacula-client/bacula-client_fd.xml +++ b/config/bacula-client/bacula-client_fd.xml @@ -1,70 +1,44 @@ - - - - - + Copyright (C) 2012 Marcio Carlos Braga Antao Client Install for Bacula 5.2.6 Backup Bacula Server Installed in or network Currently there are no FAQ items provided. - bacula-client + bacula-client_fd 5.2.6 - Bacula-Client Setting - pkg_edit.php?xml=bacula-client.xml&id=0 + Bacula-Client: FileDaemon Setting + /pkg_edit.php?xml=bacula-client_fd.xml&id=0 /usr/local/pkg/bacula-client.inc + installedpackages->package->baculaclient + + /usr/local/pkg/ + 0755 + http://10.197.93.13/packages/config/bacula-client/bacula-client.inc + /usr/local/pkg/ 0755 - http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc + http://10.197.93.13/packages/config/bacula-client/bacula-client_fd.xml + + + /usr/local/www/ + 0755 + http://10.197.93.13/packages/config/bacula-client/bacula-client_view_config.php - bacula-client + Bacula-client bacula backup client -
sysutils
- bacula-client.xml +
Services
+ bacula-client_fd.xml
Directors /pkg.php?xml=bacula-client.xml - FileDaemon - /pkg.php?xml=bacula-client_fd.xml + /pkg_edit.php?xml=bacula-client_fd.xml&id=0 @@ -73,48 +47,36 @@ - - listtopic - temp - File configuration - File Daemon Port port input 4 - Port for a File Daemon + Port for a File Daemon. Default : 9102 - - WorkingDirectory - dir - Working Directory - input - 60 - Maximun Concurrent Jobs jobs input 3 - Maximun Concurrent Jobs + Maximun Concurrent Jobs. Default : 20 + - bacula-client_custom_php_install_command(); + baculaclient_custom_php_install_command(); - bacula-client_custom_php_write_config() - bacula-client_custom_php_write_config() + baculaclient_custom_php_write_config();
\ No newline at end of file -- cgit v1.2.3 From e58003ea850c3042c84527293d0701b3f4234016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:17:09 -0300 Subject: Update master --- config/bacula-client/bacula-client_fd.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client_fd.xml b/config/bacula-client/bacula-client_fd.xml index c1b3c8cd..e16b82af 100644 --- a/config/bacula-client/bacula-client_fd.xml +++ b/config/bacula-client/bacula-client_fd.xml @@ -13,17 +13,17 @@ /usr/local/pkg/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client.inc + http://www.pfsense.org/packages/config/bacula-client/bacula-client.inc /usr/local/pkg/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client_fd.xml + http://www.pfsense.org/packages/config/bacula-client/bacula-client_fd.xml /usr/local/www/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client_view_config.php + http://www.pfsense.org/packages/config/bacula-client/bacula-client_view_config.php Bacula-client -- cgit v1.2.3 From 5a1b88e94b5a290176d60cd47e9c67b594c81d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:17:40 -0300 Subject: Update master --- config/bacula-client/bacula-client_fd.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client_fd.xml b/config/bacula-client/bacula-client_fd.xml index e16b82af..6776838f 100644 --- a/config/bacula-client/bacula-client_fd.xml +++ b/config/bacula-client/bacula-client_fd.xml @@ -13,17 +13,17 @@ /usr/local/pkg/ 0755 - http://www.pfsense.org/packages/config/bacula-client/bacula-client.inc + http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc /usr/local/pkg/ 0755 - http://www.pfsense.org/packages/config/bacula-client/bacula-client_fd.xml + http://www.pfsense.com/packages/config/bacula-client/bacula-client_fd.xml /usr/local/www/ 0755 - http://www.pfsense.org/packages/config/bacula-client/bacula-client_view_config.php + http://www.pfsense.com/packages/config/bacula-client/bacula-client_view_config.php Bacula-client -- cgit v1.2.3 From c305afc781e8b61a647b07e5f954af7f87e522cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Carlos?= Date: Fri, 29 Jun 2012 14:18:28 -0300 Subject: Update master --- config/bacula-client/bacula-client.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/bacula-client/bacula-client.xml b/config/bacula-client/bacula-client.xml index 34eee65e..3820944f 100644 --- a/config/bacula-client/bacula-client.xml +++ b/config/bacula-client/bacula-client.xml @@ -13,17 +13,17 @@ /usr/local/pkg/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client.inc + http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc /usr/local/pkg/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client_fd.xml + http://www.pfsense.com/packages/config/bacula-client/bacula-client_fd.xml /usr/local/www/ 0755 - http://10.197.93.13/packages/config/bacula-client/bacula-client_view_config.php + http://www.pfsense.com/packages/config/bacula-client/bacula-client_view_config.php Bacula-client -- cgit v1.2.3