Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added storage device example configuration files
added configuration files for the Storage Daemon backends tape and fifo. Also setting file permissions properly. Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
- Loading branch information
1 parent
77ffcf3
commit d5588ed
Showing
11 changed files
with
189 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/etc/bareos/bareos-sd.d/device-fifo.conf | ||
@backenddir@/libbareossd-fifo*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
# postinst script for bareos | ||
# | ||
# see: dh_installdeb(1) | ||
|
||
set -e | ||
|
||
# summary of how this script can be called: | ||
# * <postinst> `configure' <most-recently-configured-version> | ||
# * <old-postinst> `abort-upgrade' <new version> | ||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> | ||
# <new-version> | ||
# * <postinst> `abort-remove' | ||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | ||
# <failed-install-package> <version> `removing' | ||
# <conflicting-package> <version> | ||
# for details, see http://www.debian.org/doc/debian-policy/ or | ||
# the debian-policy package | ||
|
||
daemon_user=bareos | ||
daemon_group=bareos | ||
|
||
permissions() | ||
{ | ||
chown root:${daemon_group} /etc/bareos/bareos-sd.d/device-fifo.conf | ||
} | ||
|
||
case "$1" in | ||
configure) | ||
permissions | ||
;; | ||
abort-upgrade|abort-remove|abort-deconfigure) | ||
;; | ||
*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
# dh_installdeb will replace this with shell code automatically | ||
# generated by other debhelper scripts. | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
# postinst script for bareos | ||
# | ||
# see: dh_installdeb(1) | ||
|
||
set -e | ||
|
||
# summary of how this script can be called: | ||
# * <postinst> `configure' <most-recently-configured-version> | ||
# * <old-postinst> `abort-upgrade' <new version> | ||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> | ||
# <new-version> | ||
# * <postinst> `abort-remove' | ||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | ||
# <failed-install-package> <version> `removing' | ||
# <conflicting-package> <version> | ||
# for details, see http://www.debian.org/doc/debian-policy/ or | ||
# the debian-policy package | ||
|
||
daemon_user=bareos | ||
daemon_group=bareos | ||
|
||
permissions() | ||
{ | ||
chown root:${daemon_group} /etc/bareos/bareos-sd.d/device-tape-with-autoloader.conf | ||
} | ||
|
||
case "$1" in | ||
configure) | ||
permissions | ||
;; | ||
abort-upgrade|abort-remove|abort-deconfigure) | ||
;; | ||
*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
# dh_installdeb will replace this with shell code automatically | ||
# generated by other debhelper scripts. | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# example of a Storage daemon dummy device to test the backup. | ||
# This example is write-only, so obviously, there is no way to restore data. | ||
# In other cases, Fifo backends are often combined this by RunBeforeJobs, | ||
# to start a corresponding reader/writer program. | ||
# | ||
|
||
# | ||
# Preparations: | ||
# | ||
# include this configuration file in bareos-sd.conf by | ||
# @/etc/bareos/bareos-sd.d/device-fifo.conf | ||
# | ||
|
||
Device { | ||
Name = NULL | ||
Archive Device = /dev/null | ||
Device Type = fifo | ||
Media Type = null | ||
Label Media = yes | ||
Random Access = no | ||
Automatic Mount = no | ||
Removable Media = no | ||
Always Open = no | ||
MaximumOpenWait = 60 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/defaultconfigs/bareos-sd.d/device-tape-with-autoloader.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Preparations: | ||
# | ||
# include this configuration file in bareos-sd.conf by | ||
# @/etc/bareos/bareos-sd.d/device-tape-with-autoloader.conf | ||
# | ||
|
||
# on Linux use "lsscsi --generic" | ||
# to get a list of your SCSI devices. | ||
# However, normaly you should access your devices by-id | ||
# (eg. /dev/tape/by-id/scsi-350011d00018a5f03-nst), | ||
# because the short device names like /dev/nst1 | ||
# might change on reboot. | ||
|
||
Device { | ||
|
||
Name = "tapedrive-0" | ||
DeviceType = tape | ||
|
||
# default:0, only required if the autoloader have multiple drives. | ||
DriveIndex = 0 | ||
|
||
# if only one drive is available, this is normally /dev/nst0. | ||
# However, it is advised to access it via id (/dev/tape/by-id/...). | ||
ArchiveDevice = /dev/nst0 | ||
#ArchiveDevice = /dev/tape/by-id/scsi-350011d00018a5f03-nst | ||
|
||
# arbitrary string that descripes the the storage media. | ||
# Bareos uses this to determine, which device can be handle what media. | ||
MediaType = lto | ||
|
||
AutoChanger = yes # default: no | ||
AutomaticMount = yes # default: no | ||
MaximumFileSize = 10GB # default: 1000000000 (1GB) | ||
} | ||
|
||
|
||
|
||
Autochanger { | ||
Name = "autochanger-0" | ||
# adapt this, to match your storage loader | ||
Changer Device = /dev/tape/by-id/scsi-1TANDBERGStorageLoader_AA45JC001732 | ||
|
||
# an Autochanger can contain multiple drive devices | ||
Device = tapedrive-0 | ||
#Device = tapedrive-1 | ||
|
||
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters