Create quickstart files and remove bacula-checkconf stuff
This commit is contained in:
parent
eff763cdc0
commit
20c451d8fe
@ -34,65 +34,7 @@ There are 3 programs which provide 'libbaccats.so'.
|
|||||||
|
|
||||||
Enter to keep the current selection[+], or type selection number: 1
|
Enter to keep the current selection[+], or type selection number: 1
|
||||||
|
|
||||||
======== Quick installation guide with the default PostgreSQL backend
|
There is NO need to edit any part in the Bacula Director configuration.
|
||||||
|
|
||||||
Perform the following commands to install Bacula with its default configuration
|
|
||||||
and all daemons and consoles in one server.
|
|
||||||
|
|
||||||
1) Install packages
|
|
||||||
|
|
||||||
# yum -y install postgresql-server bacula-director bacula-storage \
|
|
||||||
bacula-client bacula-console bacula-console-bat
|
|
||||||
|
|
||||||
2) Create database
|
|
||||||
|
|
||||||
# postgresql-setup initdb
|
|
||||||
# systemctl enable postgresql.service
|
|
||||||
# systemctl start postgresql.service
|
|
||||||
# su - postgres
|
|
||||||
$ cd /usr/libexec/bacula
|
|
||||||
$ ./create_bacula_database
|
|
||||||
$ ./make_bacula_tables
|
|
||||||
$ ./grant_bacula_privileges
|
|
||||||
|
|
||||||
3) Change passwords in /etc/bacula/*conf with something you like. The default
|
|
||||||
configuration prevents startup if there is any "filler" password in the
|
|
||||||
configuration files.
|
|
||||||
|
|
||||||
# sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \
|
|
||||||
-e 's/@@FD_PASSWORD@@/fd-Fedora/g' \
|
|
||||||
-e 's/@@SD_PASSWORD@@/sd-Fedora/g' \
|
|
||||||
-e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \
|
|
||||||
-e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \
|
|
||||||
-e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \
|
|
||||||
/etc/bacula/*conf
|
|
||||||
|
|
||||||
4) Enable daemons and check they are working
|
|
||||||
|
|
||||||
# systemctl enable bacula-dir.service
|
|
||||||
# systemctl enable bacula-sd.service
|
|
||||||
# systemctl enable bacula-fd.service
|
|
||||||
|
|
||||||
# systemctl start bacula-dir.service
|
|
||||||
# echo status bacula-dir | bconsole
|
|
||||||
|
|
||||||
# systemctl start bacula-sd.service
|
|
||||||
# echo status bacula-sd | bconsole
|
|
||||||
|
|
||||||
# systemctl start bacula-fd.service
|
|
||||||
# echo status bacula-fd | bconsole
|
|
||||||
|
|
||||||
5) Install the docs and read them
|
|
||||||
|
|
||||||
# yum -y install bacula-docs
|
|
||||||
|
|
||||||
6) If you don't backup to disk and have a tape library or autochanger, please
|
|
||||||
also install the magnetic tapes commands:
|
|
||||||
|
|
||||||
# yum -y install mt-st mtx
|
|
||||||
|
|
||||||
|
|
||||||
======== Bugs
|
|
||||||
|
|
||||||
Please file bugs against the appropriate component using the Fedora version.
|
|
||||||
|
|
||||||
|
Please look at the quickstart_<backend>.txt files for a quick start with the
|
||||||
|
various backends.
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Check if we still have our @@PLACEHOLDERS@@ in the config.
|
|
||||||
# If yes, refuse to start, the user has never touched the config.
|
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
echo "Usage: $0 [configfile]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
grep -q '^[^#].*_PASSWORD@@' $1
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
logger -st bacula-dir "Error: placeholder password in config file $1"
|
|
||||||
exit 6
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
@ -42,7 +42,6 @@ start() {
|
|||||||
[ -x $exec ] || exit 5
|
[ -x $exec ] || exit 5
|
||||||
[ -f $config ] || exit 6
|
[ -f $config ] || exit 6
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
bacula-checkconf $CONFIG
|
|
||||||
daemon $prog $OPTS
|
daemon $prog $OPTS
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
|
@ -7,7 +7,6 @@ After=network.target nss-lookup.target
|
|||||||
[Service]
|
[Service]
|
||||||
Environment=CONFIG=/etc/bacula/bacula-dir.conf
|
Environment=CONFIG=/etc/bacula/bacula-dir.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/bacula-dir
|
EnvironmentFile=-/etc/sysconfig/bacula-dir
|
||||||
ExecStartPre=/usr/sbin/bacula-checkconf $CONFIG
|
|
||||||
ExecStart=/usr/sbin/bacula-dir -f $OPTS -c $CONFIG -u $DIR_USER -g $DIR_GROUP
|
ExecStart=/usr/sbin/bacula-dir -f $OPTS -c $CONFIG -u $DIR_USER -g $DIR_GROUP
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
Restart=always
|
Restart=always
|
||||||
|
@ -40,7 +40,6 @@ start() {
|
|||||||
[ -x $exec ] || exit 5
|
[ -x $exec ] || exit 5
|
||||||
[ -f $config ] || exit 6
|
[ -f $config ] || exit 6
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
bacula-checkconf $CONFIG
|
|
||||||
daemon $prog $OPTS
|
daemon $prog $OPTS
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
|
@ -7,7 +7,6 @@ After=network.target nss-lookup.target
|
|||||||
[Service]
|
[Service]
|
||||||
Environment=CONFIG=/etc/bacula/bacula-fd.conf
|
Environment=CONFIG=/etc/bacula/bacula-fd.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/bacula-fd
|
EnvironmentFile=-/etc/sysconfig/bacula-fd
|
||||||
ExecStartPre=/usr/sbin/bacula-checkconf $CONFIG
|
|
||||||
ExecStart=/usr/sbin/bacula-fd -f $OPTS -c $CONFIG -u $FD_USER -g $FD_GROUP
|
ExecStart=/usr/sbin/bacula-fd -f $OPTS -c $CONFIG -u $FD_USER -g $FD_GROUP
|
||||||
IOSchedulingClass=idle
|
IOSchedulingClass=idle
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
|
@ -42,7 +42,6 @@ start() {
|
|||||||
[ -x $exec ] || exit 5
|
[ -x $exec ] || exit 5
|
||||||
[ -f $config ] || exit 6
|
[ -f $config ] || exit 6
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
bacula-checkconf $CONFIG
|
|
||||||
daemon $prog $OPTS
|
daemon $prog $OPTS
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
|
@ -7,7 +7,6 @@ After=network.target nss-lookup.target
|
|||||||
[Service]
|
[Service]
|
||||||
Environment=CONFIG=/etc/bacula/bacula-sd.conf
|
Environment=CONFIG=/etc/bacula/bacula-sd.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/bacula-sd
|
EnvironmentFile=-/etc/sysconfig/bacula-sd
|
||||||
ExecStartPre=/usr/sbin/bacula-checkconf $CONFIG
|
|
||||||
ExecStart=/usr/sbin/bacula-sd -f $OPTS -c $CONFIG -u $SD_USER -g $SD_GROUP
|
ExecStart=/usr/sbin/bacula-sd -f $OPTS -c $CONFIG -u $SD_USER -g $SD_GROUP
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
Restart=always
|
Restart=always
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: bacula
|
Name: bacula
|
||||||
Version: 5.2.13
|
Version: 5.2.13
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||||
# See LICENSE for details
|
# See LICENSE for details
|
||||||
License: AGPLv3 with exceptions
|
License: AGPLv3 with exceptions
|
||||||
@ -26,7 +26,6 @@ Source15: bacula-fd.sysconfig
|
|||||||
Source16: bacula-dir.sysconfig
|
Source16: bacula-dir.sysconfig
|
||||||
Source17: bacula-sd.sysconfig
|
Source17: bacula-sd.sysconfig
|
||||||
Source18: bacula-sd.sysconfig.el5
|
Source18: bacula-sd.sysconfig.el5
|
||||||
Source19: bacula-checkconf
|
|
||||||
|
|
||||||
Patch1: bacula-5.0.2-openssl.patch
|
Patch1: bacula-5.0.2-openssl.patch
|
||||||
Patch2: bacula-5.2.2-queryfile.patch
|
Patch2: bacula-5.2.2-queryfile.patch
|
||||||
@ -427,7 +426,6 @@ install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}
|
|||||||
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
|
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
|
||||||
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
|
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
|
||||||
|
|
||||||
install -p -m 755 -D %{SOURCE19} %{buildroot}%{_sbindir}/bacula-checkconf
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
# Systemd unit files
|
# Systemd unit files
|
||||||
mkdir -p %{buildroot}%{_unitdir}
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
@ -764,7 +762,6 @@ fi
|
|||||||
%{_mandir}/man8/btraceback.8.*
|
%{_mandir}/man8/btraceback.8.*
|
||||||
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
|
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
|
||||||
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
|
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
|
||||||
%{_sbindir}/bacula-checkconf
|
|
||||||
|
|
||||||
%files director
|
%files director
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -906,6 +903,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 21 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-2
|
||||||
|
- Removed bacula-checkconf stuff.
|
||||||
|
- Updataed README with sqlite3 and mysql how to.
|
||||||
|
|
||||||
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
|
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
|
||||||
- Update to 5.2.13, drop upstreamed patch.
|
- Update to 5.2.13, drop upstreamed patch.
|
||||||
- Remove Fedora 16 (EOL) checks.
|
- Remove Fedora 16 (EOL) checks.
|
||||||
|
59
quickstart_mysql.txt
Normal file
59
quickstart_mysql.txt
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
======== Quick installation guide with the MySQL backend ========
|
||||||
|
|
||||||
|
Perform the following commands to install Bacula with its default configuration
|
||||||
|
and all daemons and consoles in one server.
|
||||||
|
|
||||||
|
1) Install packages
|
||||||
|
|
||||||
|
# yum -y install mysql-server \
|
||||||
|
bacula-director bacula-storage bacula-client \
|
||||||
|
bacula-console bacula-console-bat
|
||||||
|
|
||||||
|
2) Select the MySQL database backend
|
||||||
|
|
||||||
|
# alternatives --set libbaccats.so /usr/lib64/libbaccats-mysql.so
|
||||||
|
|
||||||
|
3) Create database
|
||||||
|
|
||||||
|
# systemctl enable mysqld.service
|
||||||
|
# systemctl start mysqld.service
|
||||||
|
|
||||||
|
# cd /usr/libexec/bacula
|
||||||
|
# ./create_bacula_database mysql
|
||||||
|
# ./make_bacula_tables mysql
|
||||||
|
# ./grant_bacula_privileges mysql
|
||||||
|
|
||||||
|
4) Change passwords in /etc/bacula/*conf with something you like.
|
||||||
|
|
||||||
|
# sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \
|
||||||
|
-e 's/@@FD_PASSWORD@@/fd-Fedora/g' \
|
||||||
|
-e 's/@@SD_PASSWORD@@/sd-Fedora/g' \
|
||||||
|
-e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \
|
||||||
|
-e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \
|
||||||
|
-e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \
|
||||||
|
/etc/bacula/*conf
|
||||||
|
|
||||||
|
5) Enable daemons and check they are working
|
||||||
|
|
||||||
|
# systemctl enable bacula-dir.service
|
||||||
|
# systemctl enable bacula-sd.service
|
||||||
|
# systemctl enable bacula-fd.service
|
||||||
|
|
||||||
|
# systemctl start bacula-dir.service
|
||||||
|
# echo status bacula-dir | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-sd.service
|
||||||
|
# echo status bacula-sd | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-fd.service
|
||||||
|
# echo status bacula-fd | bconsole
|
||||||
|
|
||||||
|
6) Install the docs and read them
|
||||||
|
|
||||||
|
# yum -y install bacula-docs
|
||||||
|
|
||||||
|
7) If you don't backup to disk and have a tape library or autochanger, please
|
||||||
|
also install the magnetic tapes commands:
|
||||||
|
|
||||||
|
# yum -y install mt-st mtx
|
||||||
|
|
61
quickstart_postgresql.txt
Normal file
61
quickstart_postgresql.txt
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
======== Quick installation guide with the default PostgreSQL backend ========
|
||||||
|
|
||||||
|
Perform the following commands to install Bacula with its default configuration
|
||||||
|
and all daemons and consoles in one server.
|
||||||
|
|
||||||
|
1) Install packages
|
||||||
|
|
||||||
|
# yum -y install postgresql-server \
|
||||||
|
bacula-director bacula-storage bacula-client \
|
||||||
|
bacula-console bacula-console-bat
|
||||||
|
|
||||||
|
2) Select the PostgreSQL database backend
|
||||||
|
|
||||||
|
# alternatives --set libbaccats.so /usr/lib64/libbaccats-postgresql.so
|
||||||
|
|
||||||
|
3) Create database
|
||||||
|
|
||||||
|
# postgresql-setup initdb
|
||||||
|
# systemctl enable postgresql.service
|
||||||
|
# systemctl start postgresql.service
|
||||||
|
|
||||||
|
# su - postgres
|
||||||
|
$ cd /usr/libexec/bacula
|
||||||
|
$ ./create_bacula_database
|
||||||
|
$ ./make_bacula_tables
|
||||||
|
$ ./grant_bacula_privileges
|
||||||
|
|
||||||
|
4) Change passwords in /etc/bacula/*conf with something you like.
|
||||||
|
|
||||||
|
# sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \
|
||||||
|
-e 's/@@FD_PASSWORD@@/fd-Fedora/g' \
|
||||||
|
-e 's/@@SD_PASSWORD@@/sd-Fedora/g' \
|
||||||
|
-e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \
|
||||||
|
-e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \
|
||||||
|
-e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \
|
||||||
|
/etc/bacula/*conf
|
||||||
|
|
||||||
|
5) Enable daemons and check they are working
|
||||||
|
|
||||||
|
# systemctl enable bacula-dir.service
|
||||||
|
# systemctl enable bacula-sd.service
|
||||||
|
# systemctl enable bacula-fd.service
|
||||||
|
|
||||||
|
# systemctl start bacula-dir.service
|
||||||
|
# echo status bacula-dir | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-sd.service
|
||||||
|
# echo status bacula-sd | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-fd.service
|
||||||
|
# echo status bacula-fd | bconsole
|
||||||
|
|
||||||
|
6) Install the docs and read them
|
||||||
|
|
||||||
|
# yum -y install bacula-docs
|
||||||
|
|
||||||
|
7) If you don't backup to disk and have a tape library or autochanger, please
|
||||||
|
also install the magnetic tapes commands:
|
||||||
|
|
||||||
|
# yum -y install mt-st mtx
|
||||||
|
|
56
quickstart_sqlite3.txt
Normal file
56
quickstart_sqlite3.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
======== Quick installation guide with the SQLite backend ========
|
||||||
|
|
||||||
|
Perform the following commands to install Bacula with its default configuration
|
||||||
|
and all daemons and consoles in one server.
|
||||||
|
|
||||||
|
1) Install packages
|
||||||
|
|
||||||
|
# yum -y install sqlite \
|
||||||
|
bacula-director bacula-storage bacula-client \
|
||||||
|
bacula-console bacula-console-bat
|
||||||
|
|
||||||
|
2) Select the SQLite database backend
|
||||||
|
|
||||||
|
# alternatives --set libbaccats.so /usr/lib64/libbaccats-sqlite3.so
|
||||||
|
|
||||||
|
3) Create database
|
||||||
|
|
||||||
|
# cd /usr/libexec/bacula
|
||||||
|
# ./create_bacula_database sqlite3
|
||||||
|
# ./make_bacula_tables sqlite3
|
||||||
|
# ./grant_bacula_privileges sqlite3
|
||||||
|
|
||||||
|
4) Change passwords in /etc/bacula/*conf with something you like.
|
||||||
|
|
||||||
|
# sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \
|
||||||
|
-e 's/@@FD_PASSWORD@@/fd-Fedora/g' \
|
||||||
|
-e 's/@@SD_PASSWORD@@/sd-Fedora/g' \
|
||||||
|
-e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \
|
||||||
|
-e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \
|
||||||
|
-e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \
|
||||||
|
/etc/bacula/*conf
|
||||||
|
|
||||||
|
5) Enable daemons and check they are working
|
||||||
|
|
||||||
|
# systemctl enable bacula-dir.service
|
||||||
|
# systemctl enable bacula-sd.service
|
||||||
|
# systemctl enable bacula-fd.service
|
||||||
|
|
||||||
|
# systemctl start bacula-dir.service
|
||||||
|
# echo status bacula-dir | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-sd.service
|
||||||
|
# echo status bacula-sd | bconsole
|
||||||
|
|
||||||
|
# systemctl start bacula-fd.service
|
||||||
|
# echo status bacula-fd | bconsole
|
||||||
|
|
||||||
|
6) Install the docs and read them
|
||||||
|
|
||||||
|
# yum -y install bacula-docs
|
||||||
|
|
||||||
|
7) If you don't backup to disk and have a tape library or autochanger, please
|
||||||
|
also install the magnetic tapes commands:
|
||||||
|
|
||||||
|
# yum -y install mt-st mtx
|
||||||
|
|
Loading…
Reference in New Issue
Block a user