Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created October 20, 2015 20:49
Show Gist options
  • Save dlangille/2591d126e687091f8f1a to your computer and use it in GitHub Desktop.
Save dlangille/2591d126e687091f8f1a to your computer and use it in GitHub Desktop.
FreeBSD upgrade Bacula 7.0 to 7.2
[dan@empty:~] $ sudo pkg install -r FreeBSD bacula-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
bacula-server: 7.0.5_4 [FreeBSD]
postgresql93-client: 9.3.9 [FreeBSD]
bacula-client: 7.0.5_2 [FreeBSD]
The process will require 13 MiB more space.
Proceed with this action? [y/N]: yes
[empty] [1/3] Installing postgresql93-client-9.3.9...
[empty] [1/3] Extracting postgresql93-client-9.3.9: 100%
[empty] [2/3] Installing bacula-client-7.0.5_2...
===> Creating users and/or groups.
Using existing group 'bacula'.
Using existing user 'bacula'.
[empty] [2/3] Extracting bacula-client-7.0.5_2: 100%
[empty] [3/3] Installing bacula-server-7.0.5_4...
===> Creating users and/or groups.
Using existing group 'bacula'.
Using existing user 'bacula'.
[empty] [3/3] Extracting bacula-server-7.0.5_4: 100%
Message from postgresql93-client-9.3.9:
The PostgreSQL port has a collection of "side orders":
postgresql-docs
For all of the html documentation
p5-Pg
A perl5 API for client access to PostgreSQL databases.
postgresql-tcltk
If you want tcl/tk client support.
postgresql-jdbc
For Java JDBC support.
postgresql-odbc
For client access from unix applications using ODBC as access
method. Not needed to access unix PostgreSQL servers from Win32
using ODBC. See below.
ruby-postgres, py-PyGreSQL
For client access to PostgreSQL databases using the ruby & python
languages.
postgresql-plperl, postgresql-pltcl & postgresql-plruby
For using perl5, tcl & ruby as procedural languages.
postgresql-contrib
Lots of contributed utilities, postgresql functions and
datatypes. There you find pg_standby, pgcrypto and many other cool
things.
etc...
Message from bacula-client-7.0.5_2:
################################################################################
NOTE:
Sample files are installed in /usr/local/etc/bacula:
bconsole.conf.sample, bacula-fd.conf.sample
################################################################################
Message from bacula-server-7.0.5_4:
###############################################################################
bacula server was installed
An auto-changer manipulation script based on FreeBSDs
chio command is included and installed at
/usr/local/sbin/chio-bacula
Please have a look at it if you want to use an
autochanger. You have to configure the usage in
/usr/local/etc/bacula/bacula-dir.conf
Take care of correct permissions for changer and
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
they must be accessible by user bacula.
Due to lack of some features in the FreeBSD tape driver
implementation you MUST add some OS dependent options to
the bacula-sd.conf file:
Hardware End of Medium = no;
Backward Space Record = no;
Backward Space File = no;
With 2 filemarks at EOT (see man mt):
Fast Forward Space File = no;
BSF at EOM = yes;
TWO EOF = yes;
With 1 filemarks at EOT (see man mt):
Fast Forward Space File = yes;
BSF at EOM = no;
TWO EOF = no;
NOTE: YOU CAN SWITCH EOT model ONLY when starting
from scratch with EMPTY tapes.
It is also important that all the scripts accessed
by RunBeforeJob and RunAfterJob will be executed by
the user bacula. Check your permissions.
For USB support read the bacula manual. It could be necessary
to configure/compile a new kernel.
Look at /usr/local/share/bacula/update_bacula_tables for
database update procedure. Details can be found in the
ReleaseNotes
If you are using sqlite you need to run the make_sqlite_tables script as
the bacula user. Do this using 'sudo su -m bacula'.
################################################################################
[dan@empty:~] $
[dan@empty:~] $ sudo pkg install -r testing bacula-server
Updating testing repository catalogue...
testing repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (2 conflicting)
Checking integrity... done (0 conflicting)
The following 4 package(s) will be affected (of 0 checked):
Installed packages to be REMOVED:
postgresql93-client-9.3.9
New packages to be INSTALLED:
postgresql94-client: 9.4.5 [testing]
Installed packages to be UPGRADED:
bacula-server: 7.0.5_4 -> 7.2.0_1 [testing]
bacula-client: 7.0.5_2 -> 7.2.0_1 [testing]
The process will require 405 KiB more space.
Proceed with this action? [y/N]: y
[empty] [1/4] Deinstalling postgresql93-client-9.3.9...
[empty] [1/4] Deleting files for postgresql93-client-9.3.9: 100%
[empty] [2/4] Installing postgresql94-client-9.4.5...
[empty] [2/4] Extracting postgresql94-client-9.4.5: 100%
[empty] [3/4] Upgrading bacula-client from 7.0.5_2 to 7.2.0_1...
==> You should manually remove the "bacula" user.
Check if /var/db/bacula is empty and delete it to permanently remove the bacula port.
To delete Bacula group permanently, use 'pw groupdel bacula'
===> Creating users and/or groups.
Using existing group 'bacula'.
Using existing user 'bacula'.
[empty] [3/4] Extracting bacula-client-7.2.0_1: 100%
[empty] [4/4] Upgrading bacula-server from 7.0.5_4 to 7.2.0_1...
==> You should manually remove the "bacula" user.
===> Creating users and/or groups.
Using existing group 'bacula'.
Using existing user 'bacula'.
[empty] [4/4] Extracting bacula-server-7.2.0_1: 100%
Message from postgresql94-client-9.4.5:
The PostgreSQL port has a collection of "side orders":
postgresql-docs
For all of the html documentation
p5-Pg
A perl5 API for client access to PostgreSQL databases.
postgresql-tcltk
If you want tcl/tk client support.
postgresql-jdbc
For Java JDBC support.
postgresql-odbc
For client access from unix applications using ODBC as access
method. Not needed to access unix PostgreSQL servers from Win32
using ODBC. See below.
ruby-postgres, py-PyGreSQL
For client access to PostgreSQL databases using the ruby & python
languages.
postgresql-plperl, postgresql-pltcl & postgresql-plruby
For using perl5, tcl & ruby as procedural languages.
postgresql-contrib
Lots of contributed utilities, postgresql functions and
datatypes. There you find pg_standby, pgcrypto and many other cool
things.
etc...
Message from bacula-client-7.2.0_1:
################################################################################
NOTE:
Sample files are installed in /usr/local/etc/bacula:
bconsole.conf.sample, bacula-fd.conf.sample
################################################################################
Message from bacula-server-7.2.0_1:
###############################################################################
bacula server was installed
An auto-changer manipulation script based on FreeBSDs
chio command is included and installed at
/usr/local/sbin/chio-bacula
Please have a look at it if you want to use an
autochanger. You have to configure the usage in
/usr/local/etc/bacula/bacula-dir.conf
Take care of correct permissions for changer and
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
they must be accessible by user bacula.
Due to lack of some features in the FreeBSD tape driver
implementation you MUST add some OS dependent options to
the bacula-sd.conf file:
Hardware End of Medium = no;
Backward Space Record = no;
Backward Space File = no;
With 2 filemarks at EOT (see man mt):
Fast Forward Space File = no;
BSF at EOM = yes;
TWO EOF = yes;
With 1 filemarks at EOT (see man mt):
Fast Forward Space File = yes;
BSF at EOM = no;
TWO EOF = no;
NOTE: YOU CAN SWITCH EOT model ONLY when starting
from scratch with EMPTY tapes.
It is also important that all the scripts accessed
by RunBeforeJob and RunAfterJob will be executed by
the user bacula. Check your permissions.
For USB support read the bacula manual. It could be necessary
to configure/compile a new kernel.
Look at /usr/local/share/bacula/update_bacula_tables for
database update procedure. Details can be found in the
ReleaseNotes
If you are using sqlite you need to run the make_sqlite_tables script as
the bacula user. Do this using 'sudo su -m bacula'.
################################################################################
[dan@empty:~] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment