import of bacula 2.0.3;

Bacula is a set of computer programs that permit you (or the system
administrator) to manage backup, recovery, and verification of
computer data across a network of computers of different kinds.
In technical terms, it is a network Client/Server based backup program.
Bacula is relatively easy to use and efficient, while offering many
advanced storage management features that make it easy to find and
recover lost or damaged files. Due to its modular design, Bacula is
scalable from small single computer systems to systems consisting of
hundreds of computers located over a large network.

from Mike Erdely <mike@erdelynet.com>
This commit is contained in:
robert 2007-07-20 11:02:14 +00:00
parent 26a9c9cc52
commit 2dd63b900d
19 changed files with 858 additions and 0 deletions

148
sysutils/bacula/Makefile Normal file
View File

@ -0,0 +1,148 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
COMMENT-main= network backup solution
COMMENT-client= network backup solution (client)
COMMENT-server= network backup solution (server)
VERSION= 2.0.3
DISTNAME= bacula-${VERSION}
PKGNAME-main= ${DISTNAME}
FULLPKGNAME-client= ${DISTNAME:S/-/-client-/}
PKGNAME-server= ${DISTNAME:S/-/-server-/}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bacula/}
HOMEPAGE= http://www.bacula.org/
MAINTAINER= Michael Erdely <mike@erdelynet.com>
WANTLIB= c pthread crypto ssl z m stdc++
WANTLIB-server= ${WANTLIB} readline termcap
MULTI_PACKAGES= -main -client -server
# Modified GPLv2
# http://bacula.org/dev-manual/Bacula_Copyri_Tradem_Licens.html
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
BACULACONF= /etc/bacula
BACULASTATE= /var/bacula
SUBST_VARS= BACULACONF BACULASTATE
CONFIGURE_STYLE= simple
USE_GMAKE= yes
FLAVORS= pgsql mysql sqlite3 sqlite
FLAVOR?= sqlite3
CONFIGURE_ARGS= --enable-smartalloc \
--prefix=${PREFIX} \
--mandir=${PREFIX}/man \
--infodir=${PREFIX}/info \
--sysconfdir=${BACULACONF} \
--with-scriptdir=${PREFIX}/libexec/bacula \
--localstatedir=${BACULASTATE} \
--with-pid-dir=/var/run \
--with-subsys-dir=${BACULASTATE} \
--with-working-dir=${BACULASTATE} \
--with-dir-user=_bacula \
--with-dir-group=_bacula \
--with-sd-user=root \
--with-sd-group=wheel \
--without-x \
--without-tcp-wrappers \
--without-smtp-host \
--without-job-email \
--without-dump-email \
--disable-gnome \
--disable-wx-console \
--disable-tray-monitor \
--disable-nls \
--disable-conio \
--enable-readline \
--with-openssl
CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline \
-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
MTX=/bin/chio \
TAPEDRIVE=/dev/rst0 \
CONFIG_SITE=${PORTSDIR}/infrastructure/db/config.site
BACKEND=
.if ${FLAVOR:L:Mpgsql}
.if !empty(BACKEND)
ERRORS+= "Fatal: choose either pgsql or mysql or sqlite or sqlite3"
.endif
CONFIGURE_ARGS+= --with-postgresql \
--without-mysql \
--without-sqlite \
--without-sqlite3
LIB_DEPENDS+= pq.>=2:postgresql-client-*:databases/postgresql
BACKEND= postgresql
.else
CONFIGURE_ARGS+= --without-postgresql
.endif
.if ${FLAVOR:L:Mmysql}
.if !empty(BACKEND)
ERRORS+= "Fatal: choose either pgsql or mysql or sqlite or sqlite3"
.endif
CONFIGURE_ARGS+= --without-postgresql \
--with-mysql \
--without-sqlite \
--without-sqlite3
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
BACKEND= mysql
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if ${FLAVOR:L:Msqlite3}
.if !empty(BACKEND)
ERRORS+= "Fatal: choose either pgsql or mysql or sqlite or sqlite3"
.endif
CONFIGURE_ARGS+= --without-postgresql \
--without-mysql \
--without-sqlite \
--with-sqlite3
LIB_DEPENDS+= sqlite3.>=8::databases/sqlite3
BACKEND= sqlite3
.else
CONFIGURE_ARGS+= --without-sqlite3
.endif
.if ${FLAVOR:L:Msqlite}
.if !empty(BACKEND)
ERRORS+= "Fatal: choose either pgsql or mysql or sqlite or sqlite3"
.endif
CONFIGURE_ARGS+= --without-postgresql \
--without-mysql \
--with-sqlite \
--without-sqlite3
LIB_DEPENDS+= sqlite::databases/sqlite
BACKEND= sqlite
.else
CONFIGURE_ARGS+= --without-sqlite
.endif
SUBST_VARS+= BACKEND
.if empty(BACKEND)
ERRORS+= "Fatal: choose either pgsql or mysql or sqlite or sqlite3"
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bacula
${INSTALL_DATA} ${WRKINST}/etc/bacula/bacula-dir.conf \
${WRKINST}/etc/bacula/bacula-fd.conf \
${WRKINST}/etc/bacula/bacula-sd.conf \
${WRKINST}/etc/bacula/bconsole.conf \
${PREFIX}/share/examples/bacula/
.include <bsd.port.mk>

5
sysutils/bacula/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (bacula-2.0.3.tar.gz) = RD0lYKzpUXOg2LpGXeST7w==
RMD160 (bacula-2.0.3.tar.gz) = 9jKIWwUvGI0rmGwJgWcAk1PzK7M=
SHA1 (bacula-2.0.3.tar.gz) = 71jJEkO9gZ4Kwni5GurhZjnWyM4=
SHA256 (bacula-2.0.3.tar.gz) = UZM2Vgvm6SwASXWlphwsQ46sUOONmraZshW6Jpcgwt4=
SIZE (bacula-2.0.3.tar.gz) = 2527956

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- configure.orig Fri Jan 26 20:04:17 2007
+++ configure Fri Jan 26 20:05:12 2007
@@ -4151,7 +4151,7 @@ echo "${ECHO_T}no" >&6; }
fi
-if test ! -e $CXX; then
+if test ! -e `which $CXX`; then
{ { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
echo "$as_me: error: Unable to find C++ compiler" >&2;}
{ (exit 1); exit 1; }; }

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-manpages_Makefile_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- manpages/Makefile.in.orig Sat May 26 14:04:01 2007
+++ manpages/Makefile.in Sat May 26 14:05:04 2007
@@ -20,15 +20,11 @@ depend:
install:
$(MKDIR) $(DESTDIR)/$(mandir)/man8
for I in ${MAN8}; \
- do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \
- $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man8/$$I.gz; \
- rm -f $$I.gz); \
+ do $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man8/$$I; \
done
$(MKDIR) $(DESTDIR)/$(mandir)/man1
for I in ${MAN1}; \
- do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \
- $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man1/$$I.gz; \
- rm -f $$I.gz); \
+ do $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man1/$$I; \
done
uninstall:

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-scripts_bacula_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- scripts/bacula.in.orig Thu Jul 12 11:20:52 2007
+++ scripts/bacula.in Thu Jul 12 11:21:23 2007
@@ -13,9 +13,9 @@
# easier to "steal" this code for the development
# environment where they are different.
#
-BACFDCFG=@sysconfdir@
-BACSDCFG=@sysconfdir@
-BACDIRCFG=@sysconfdir@
+BACFDCFG=@scriptdir@
+BACSDCFG=@scriptdir@
+BACDIRCFG=@scriptdir@
case "$1" in
start)

View File

@ -0,0 +1,89 @@
$OpenBSD: patch-scripts_mtx-changer_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- scripts/mtx-changer.in.orig Wed Oct 11 17:34:24 2006
+++ scripts/mtx-changer.in Sat May 26 15:33:25 2007
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Bacula interface to mtx autoloader
+# Bacula interface to chio autoloader
#
# $Id: patch-scripts_mtx-changer_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
#
@@ -27,10 +27,10 @@
# e.g. mt -f $4 offline
#
# Many changers need an offline after the unload. Also many
-# changers need a sleep 60 after the mtx load.
+# changers need a sleep 60 after the chio load.
#
# N.B. If you change the script, take care to return either
-# the mtx exit code or a 0. If the script exits with a non-zero
+# the chio exit code or a 0. If the script exits with a non-zero
# exit code, Bacula will assume the request failed.
#
@@ -149,17 +149,17 @@ debug "Parms: $ctl $cmd $slot $device $drive"
case $cmd in
unload)
- debug "Doing mtx -f $ctl unload $slot $drive"
+ debug "Doing chio -f $ctl move drive $drive slot $slot"
#
# enable the following line if you need to eject the cartridge
# mt -f $device offline
# sleep 10
- ${MTX} -f $ctl unload $slot $drive
+ ${MTX} -f $ctl move drive $drive slot $slot
;;
load)
- debug "Doing mtx -f $ctl load $slot $drive"
- ${MTX} -f $ctl load $slot $drive
+ debug "Doing chio -f $ctl move slot $slot drive $drive"
+ ${MTX} -f $ctl move slot $slot drive $drive
rtn=$?
#
# Increase the sleep time if you have a slow device
@@ -170,14 +170,14 @@ case $cmd in
;;
list)
- debug "Doing mtx -f $ctl -- to list volumes"
+ debug "Doing chio -f $ctl status -- to list volumes"
make_temp_file
# Enable the following if you are using barcodes and need an inventory
# ${MTX} -f $ctl inventory
${MTX} -f $ctl status >${TMPFILE}
rtn=$?
- cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
- cat ${TMPFILE} | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]" | awk '{printf "%s:%s\n",$7,$10}'
+ cat ${TMPFILE} | grep " *slot [0-9]*: <ACCESS,.*FULL.*>" | awk "{print \$2 \$4 \$5 \$6 \$7 \$8}"
+ cat ${TMPFILE} | grep " *drive [0-9]*: <.*FULL.*>" | awk "{print \$2 \$4 \$5 \$6 \$7 \$8}" | sed "s/^/D/"
rm -f ${TMPFILE} >/dev/null 2>&1
#
# If you have a VXA PacketLoader and the above does not work, try
@@ -187,18 +187,19 @@ case $cmd in
;;
loaded)
- debug "Doing mtx -f $ctl $drive -- to find what is loaded"
+ debug "Doing chio -f $ctl status -- to find what is loaded"
make_temp_file
${MTX} -f $ctl status >${TMPFILE}
rtn=$?
- cat ${TMPFILE} | grep "^Data Transfer Element $drive:Full" | awk "{print \$7}"
- cat ${TMPFILE} | grep "^Data Transfer Element $drive:Empty" | awk "{print 0}"
+ cat ${TMPFILE} | grep " *drive $drive: <.*FULL.*>" | awk "{print \$4}" | sed "s/^\[//" | sed "s/=\]$//"
+ cat ${TMPFILE} | grep " *drive $drive: <.*FULL.*>" > /dev/null 2>&1
+ if [ $? != 0 ]; then echo 0; fi
rm -f ${TMPFILE} >/dev/null 2>&1
exit $rtn
;;
slots)
- debug "Doing mtx -f $ctl -- to get count of slots"
- ${MTX} -f $ctl status | grep " *Storage Changer" | awk "{print \$5}"
+ debug "Doing chio -f $ctl status -- to get count of slots"
+ ${MTX} -f $ctl status | grep -c "slot [0-9]*"
;;
esac

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_console_bconsole_conf_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- src/console/bconsole.conf.in.orig Thu Jul 12 11:21:37 2007
+++ src/console/bconsole.conf.in Thu Jul 12 11:21:53 2007
@@ -3,8 +3,8 @@
#
Director {
- Name = @hostname@-dir
+ Name = bacula-dir
DIRport = @dir_port@
- address = @hostname@
+ address = 127.0.0.1
Password = "@dir_password@"
}

View File

@ -0,0 +1,109 @@
$OpenBSD: patch-src_dird_bacula-dir_conf_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- src/dird/bacula-dir.conf.in.orig Thu Jul 12 11:22:02 2007
+++ src/dird/bacula-dir.conf.in Thu Jul 12 11:24:22 2007
@@ -13,7 +13,8 @@
#
Director { # define myself
- Name = @hostname@-dir
+ Name = bacula-dir
+ DIRaddress = 127.0.0.1
DIRport = @dir_port@ # where we listen for UA connections
QueryFile = "@scriptdir@/query.sql"
WorkingDirectory = "@working_dir@"
@@ -27,7 +28,7 @@ JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
- Client = @hostname@-fd
+ Client = bacula-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
@@ -48,7 +49,7 @@ Job {
#Job {
# Name = "Client2"
-# Client = @hostname@2-fd
+# Client = client2-fd
# JobDefs = "DefaultJob"
# Write Bootstrap = "@working_dir@/Client2.bsr"
#}
@@ -75,8 +76,8 @@ Job {
Job {
Name = "RestoreFiles"
Type = Restore
- Client=@hostname@-fd
- FileSet="Full Set"
+ Client = bacula-fd
+ FileSet = "Full Set"
Storage = File
Pool = Default
Messages = Standard
@@ -150,8 +151,8 @@ FileSet {
# Client (File Services) to backup
Client {
- Name = @hostname@-fd
- Address = @hostname@
+ Name = bacula-fd
+ Address = 127.0.0.1
FDPort = @fd_port@
Catalog = MyCatalog
Password = "@fd_password@" # password for FileDaemon
@@ -165,8 +166,8 @@ Client {
# You should change Name, Address, and Password before using
#
#Client {
-# Name = @hostname@2-fd
-# Address = @hostname@2
+# Name = client2-fd
+# Address = client2.my.domain
# FDPort = @fd_port@
# Catalog = MyCatalog
# Password = "@fd_password@2" # password for FileDaemon 2
@@ -180,7 +181,7 @@ Client {
Storage {
Name = File
# Do not use "localhost" here
- Address = @hostname@ # N.B. Use a fully qualified name here
+ Address = 127.0.0.1 # N.B. Use a fully qualified name here
SDPort = @sd_port@
Password = "@sd_password@"
Device = FileStorage
@@ -193,7 +194,7 @@ Storage {
#Storage {
# Name = DDS-4
# Do not use "localhost" here
-# Address = @hostname@ # N.B. Use a fully qualified name here
+# Address = 127.0.0.1 # N.B. Use a fully qualified name here
# SDPort = @sd_port@
# Password = "@sd_password@" # password for Storage daemon
# Device = DDS-4 # must be same as Device in Storage daemon
@@ -205,7 +206,7 @@ Storage {
#Storage {
# Name = "8mmDrive"
# Do not use "localhost" here
-# Address = @hostname@ # N.B. Use a fully qualified name here
+# Address = 127.0.0.1 # N.B. Use a fully qualified name here
# SDPort = @sd_port@
# Password = "@sd_password@"
# Device = "Exabyte 8mm"
@@ -216,7 +217,7 @@ Storage {
#Storage {
# Name = "DVD"
# Do not use "localhost" here
-# Address = @hostname@ # N.B. Use a fully qualified name here
+# Address = 127.0.0.1 # N.B. Use a fully qualified name here
# SDPort = @sd_port@
# Password = "@sd_password@"
# Device = "DVD Writer"
@@ -286,7 +287,7 @@ Pool {
# Restricted console used by tray-monitor to get the status of the director
#
Console {
- Name = @hostname@-mon
+ Name = bacula-mon
Password = "@mon_dir_password@"
CommandACL = status, .status
}

View File

@ -0,0 +1,37 @@
$OpenBSD: patch-src_filed_bacula-fd_conf_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- src/filed/bacula-fd.conf.in.orig Thu Jul 12 11:25:22 2007
+++ src/filed/bacula-fd.conf.in Thu Jul 12 11:25:43 2007
@@ -11,7 +11,7 @@
# List Directors who are permitted to contact this File daemon
#
Director {
- Name = @hostname@-dir
+ Name = bacula-dir
Password = "@fd_password@"
}
@@ -20,7 +20,7 @@ Director {
# status of the file daemon
#
Director {
- Name = @hostname@-mon
+ Name = bacula-mon
Password = "@mon_fd_password@"
Monitor = yes
}
@@ -29,7 +29,7 @@ Director {
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
- Name = @hostname@-fd
+ Name = bacula-fd
FDport = @fd_port@ # where we listen for the director
WorkingDirectory = @working_dir@
Pid Directory = @piddir@
@@ -39,5 +39,5 @@ FileDaemon { # this is me
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !skipped, !restored
+ director = bacula-dir = all, !skipped, !restored
}

View File

@ -0,0 +1,101 @@
$OpenBSD: patch-src_stored_bacula-sd_conf_in,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
--- src/stored/bacula-sd.conf.in.orig Mon Mar 5 07:33:59 2007
+++ src/stored/bacula-sd.conf.in Thu Jul 12 11:26:01 2007
@@ -11,7 +11,7 @@
#
Storage { # definition of myself
- Name = @hostname@-sd
+ Name = bacula-sd
SDPort = @sd_port@ # Director's port
WorkingDirectory = "@working_dir@"
Pid Directory = "@piddir@"
@@ -22,7 +22,7 @@ Storage { # definition of
# List Directors who are permitted to contact Storage daemon
#
Director {
- Name = @hostname@-dir
+ Name = bacula-dir
Password = "@sd_password@"
}
@@ -31,7 +31,7 @@ Director {
# status of the storage daemon
#
Director {
- Name = @hostname@-mon
+ Name = bacula-mon
Password = "@mon_sd_password@"
Monitor = yes
}
@@ -60,15 +60,15 @@ Device {
# Name = Autochanger
# Device = Drive-1
# Device = Drive-2
-# Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
-# Changer Device = /dev/sg0
+# Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
+# Changer Device = /dev/ch0
#}
#Device {
# Name = Drive-1 #
# Drive Index = 0
# Media Type = DLT-8000
-# Archive Device = /dev/nst0
+# Archive Device = @TAPEDRIVE@
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
@@ -84,7 +84,7 @@ Device {
# Name = Drive-2 #
# Drive Index = 1
# Media Type = DLT-8000
-# Archive Device = /dev/nst1
+# Archive Device = @TAPEDRIVE@
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
@@ -108,7 +108,7 @@ Device {
# RemovableMedia = yes;
# RandomAccess = no;
## Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
-## Changer Device = /dev/sg0
+## Changer Device = /dev/ch0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
@@ -123,7 +123,7 @@ Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
# Media Type = DDS-4
-# Archive Device = /dev/nsa1
+# Archive Device = @TAPEDRIVE@
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
@@ -162,7 +162,7 @@ Device {
#Device {
# Name = "DVD-Writer"
# Media Type = DVD
-# Archive Device = /dev/hdc
+# Archive Device = /dev/cd0
# LabelMedia = yes; # lets Bacula label unlabeled media
# Random Access = Yes;
# AutomaticMount = yes; # when device opened, read it
@@ -184,7 +184,7 @@ Device {
#Device {
# Name = DDS-3
# Media Type = DDS-3
-# Archive Device = /dev/nrst0
+# Archive Device = @TAPEDRIVE@
# Use MTIOCGET= no
# BSF at EOM = yes
# TWO EOF = no
@@ -218,5 +218,5 @@ Device {
#
Messages {
Name = Standard
- director = @hostname@-dir = all
+ director = bacula-dir = all
}

View File

@ -0,0 +1,14 @@
Bacula comes by night and sucks the vital essence from your computers.
Bacula is a set of computer programs that permit you (or the system
administrator) to manage backup, recovery, and verification of
computer data across a network of computers of different kinds.
In technical terms, it is a network Client/Server based backup program.
Bacula is relatively easy to use and efficient, while offering many
advanced storage management features that make it easy to find and
recover lost or damaged files. Due to its modular design, Bacula is
scalable from small single computer systems to systems consisting of
hundreds of computers located over a large network.
bacula-client contains the bacula-fd "backup agent" that gets installed
on the computers you want to back up.

View File

@ -0,0 +1,11 @@
Bacula comes by night and sucks the vital essence from your computers.
Bacula is a set of computer programs that permit you (or the system
administrator) to manage backup, recovery, and verification of
computer data across a network of computers of different kinds.
In technical terms, it is a network Client/Server based backup program.
Bacula is relatively easy to use and efficient, while offering many
advanced storage management features that make it easy to find and
recover lost or damaged files. Due to its modular design, Bacula is
scalable from small single computer systems to systems consisting of
hundreds of computers located over a large network.

View File

@ -0,0 +1,16 @@
Bacula comes by night and sucks the vital essence from your computers.
Bacula is a set of computer programs that permit you (or the system
administrator) to manage backup, recovery, and verification of
computer data across a network of computers of different kinds.
In technical terms, it is a network Client/Server based backup program.
Bacula is relatively easy to use and efficient, while offering many
advanced storage management features that make it easy to find and
recover lost or damaged files. Due to its modular design, Bacula is
scalable from small single computer systems to systems consisting of
hundreds of computers located over a large network.
bacula-server contains the bacula-sd "storage daemon" that writes the
backup data to the backup device. bacula-dir is the "director" that
manages backups. bconsole is the management application to control
the director and get status of file daemons and storage daemons.

View File

@ -0,0 +1,9 @@
Example config files for Bacula have been installed in
${PREFIX}/share/examples/bacula and copied also to
${BACULACONF}, edit them to your site's needs.
To start, add the following to /etc/rc.local:
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-fd ]; then
${PREFIX}/libexec/bacula/bacula-ctl-fd start
echo -n ' bacula-fd'
fi

View File

@ -0,0 +1,23 @@
To take advantage of bacula's DVD/CD writing, install cdrtools and
dvd+rw-tools packages.
Example config files for Bacula have been installed in
${PREFIX}/share/examples/bacula and copied also to
${BACULACONF}, edit them to your site's needs.
Backend database creation/update scripts are located in
${PREFIX}/libexec/bacula
To start, add the following to /etc/rc.local:
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-fd ]; then
${PREFIX}/libexec/bacula/bacula-ctl-fd start
echo -n ' bacula-fd'
fi
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-sd ]; then
${PREFIX}/libexec/bacula/bacula-ctl-sd start
echo -n ' bacula-sd'
fi
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-dir ]; then
${PREFIX}/libexec/bacula/bacula-ctl-dir start
echo -n ' bacula-dir'
fi

View File

@ -0,0 +1,19 @@
To take advantage of bacula's DVD/CD writing, install cdrtools and
dvd+rw-tools packages.
Example config files for Bacula have been installed in
${PREFIX}/share/examples/bacula and copied also to
${BACULACONF}, edit them to your site's needs.
Backend database creation/update scripts are located in
${PREFIX}/libexec/bacula
To start, add the following to /etc/rc.local:
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-sd ]; then
${PREFIX}/libexec/bacula/bacula-ctl-sd start
echo -n ' bacula-sd'
fi
if [ -x ${PREFIX}/libexec/bacula/bacula-ctl-dir ]; then
${PREFIX}/libexec/bacula/bacula-ctl-dir start
echo -n ' bacula-dir'
fi

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST-client,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
@conflict bacula-*
libexec/bacula/
libexec/bacula/bacula-ctl-fd
@man man/man8/bacula-fd.8
sbin/bacula-fd
@owner root
@group wheel
@mode 755
share/examples/bacula/
@mode 750
@sample ${BACULACONF}/
@mode 644
share/examples/bacula/bacula-fd.conf
@mode 640
@sample ${BACULACONF}/bacula-fd.conf

View File

@ -0,0 +1,105 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
@conflict bacula-client-*
@conflict bacula-server-*
@newgroup _bacula:591
@newuser _bacula:591:_bacula:daemon:Bacula Director:/var/bacula:/sbin/nologin
libexec/bacula/
libexec/bacula/bacula
libexec/bacula/bacula-ctl-dir
libexec/bacula/bacula-ctl-fd
libexec/bacula/bacula-ctl-sd
libexec/bacula/bconsole
libexec/bacula/btraceback.dbx
libexec/bacula/btraceback.gdb
libexec/bacula/create_bacula_database
libexec/bacula/create_${BACKEND}_database
libexec/bacula/delete_catalog_backup
libexec/bacula/disk-changer
libexec/bacula/drop_bacula_database
libexec/bacula/drop_bacula_tables
libexec/bacula/drop_${BACKEND}_database
libexec/bacula/drop_${BACKEND}_tables
libexec/bacula/dvd-handler
@comment libexec/bacula/gconsole
libexec/bacula/grant_bacula_privileges
libexec/bacula/grant_${BACKEND}_privileges
libexec/bacula/make_bacula_tables
libexec/bacula/make_catalog_backup
libexec/bacula/make_${BACKEND}_tables
libexec/bacula/mtx-changer
libexec/bacula/query.sql
libexec/bacula/startmysql
libexec/bacula/stopmysql
libexec/bacula/update_bacula_tables
libexec/bacula/update_${BACKEND}_tables
@comment @man man/man1/bacula-console-gnome.1
@comment @man man/man1/bacula-tray-monitor.1
@comment @man man/man1/bacula-wxconsole.1
@man man/man1/bsmtp.1
@man man/man8/bacula-dir.8
@man man/man8/bacula-fd.8
@man man/man8/bacula-sd.8
@man man/man8/bacula.8
@man man/man8/bconsole.8
@man man/man8/bcopy.8
@man man/man8/bextract.8
@man man/man8/bls.8
@man man/man8/bscan.8
@man man/man8/btape.8
@man man/man8/btraceback.8
@man man/man8/dbcheck.8
sbin/bacula-dir
sbin/bacula-fd
sbin/bacula-sd
sbin/bconsole
sbin/bcopy
sbin/bextract
sbin/bls
sbin/bregex
sbin/bscan
sbin/bsmtp
sbin/btape
sbin/btraceback
sbin/bwild
sbin/dbcheck
@mode 755
@owner root
@group wheel
share/examples/bacula/
@mode 750
@owner _bacula
@group _bacula
@sample ${BACULACONF}/
@sample ${BACULASTATE}/
@mode 644
@owner root
@group wheel
share/examples/bacula/bacula-dir.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bacula-dir.conf
@mode 644
@owner root
@group wheel
share/examples/bacula/bacula-fd.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bacula-fd.conf
@mode 644
@owner root
@group wheel
share/examples/bacula/bacula-sd.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bacula-sd.conf
@mode 644
@owner root
@group wheel
share/examples/bacula/bconsole.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bconsole.conf

View File

@ -0,0 +1,93 @@
@comment $OpenBSD: PLIST-server,v 1.1.1.1 2007/07/20 11:02:14 robert Exp $
@conflict bacula-*
@newgroup _bacula:591
@newuser _bacula:591:_bacula:daemon:Bacula Director:/var/bacula:/sbin/nologin
libexec/bacula/
libexec/bacula/bacula
libexec/bacula/bacula-ctl-dir
libexec/bacula/bacula-ctl-sd
libexec/bacula/bconsole
libexec/bacula/btraceback.dbx
libexec/bacula/btraceback.gdb
libexec/bacula/create_bacula_database
libexec/bacula/create_${BACKEND}_database
libexec/bacula/delete_catalog_backup
libexec/bacula/disk-changer
libexec/bacula/drop_bacula_database
libexec/bacula/drop_bacula_tables
libexec/bacula/drop_${BACKEND}_database
libexec/bacula/drop_${BACKEND}_tables
libexec/bacula/dvd-handler
@comment libexec/bacula/gconsole
libexec/bacula/grant_bacula_privileges
libexec/bacula/grant_${BACKEND}_privileges
libexec/bacula/make_bacula_tables
libexec/bacula/make_catalog_backup
libexec/bacula/make_${BACKEND}_tables
libexec/bacula/mtx-changer
libexec/bacula/query.sql
libexec/bacula/startmysql
libexec/bacula/stopmysql
libexec/bacula/update_bacula_tables
libexec/bacula/update_${BACKEND}_tables
@comment @man man/man1/bacula-console-gnome.1
@comment @man man/man1/bacula-tray-monitor.1
@comment @man man/man1/bacula-wxconsole.1
@man man/man1/bsmtp.1
@man man/man8/bacula-dir.8
@man man/man8/bacula-sd.8
@man man/man8/bacula.8
@man man/man8/bconsole.8
@man man/man8/bcopy.8
@man man/man8/bextract.8
@man man/man8/bls.8
@man man/man8/bscan.8
@man man/man8/btape.8
@man man/man8/btraceback.8
@man man/man8/dbcheck.8
sbin/bacula-dir
sbin/bacula-sd
sbin/bconsole
sbin/bcopy
sbin/bextract
sbin/bls
sbin/bregex
sbin/bscan
sbin/bsmtp
sbin/btape
sbin/btraceback
sbin/bwild
sbin/dbcheck
@mode 755
@owner root
@group wheel
share/examples/bacula/
@mode 750
@owner _bacula
@group _bacula
@sample ${BACULACONF}/
@sample ${BACULASTATE}/
@mode 644
@owner root
@group wheel
share/examples/bacula/bacula-dir.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bacula-dir.conf
@mode 644
@owner root
@group wheel
share/examples/bacula/bacula-sd.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bacula-sd.conf
@mode 644
@owner root
@group wheel
share/examples/bacula/bconsole.conf
@mode 640
@owner _bacula
@group _bacula
@sample ${BACULACONF}/bconsole.conf