mercredi 26 novembre 2014

Installation bareos par les sources sur Ubuntu 12.04

Compilation bareos

DAEMON_USER=bareos
DAEMON_GROUP=bareos
DIRECTOR_DAEMON_USER=${DAEMON_USER}
STORAGE_DAEMON_USER=${DAEMON_USER}
FILE_DAEMON_USER=root
STORAGE_DAEMON_GROUP=${DAEMON_GROUP}
WORKING_DIR=/var/lib/bareos

./configure   --prefix=/usr \
  --sbindir=/usr/sbin \
  --with-sbin-perm=755 \
  --sysconfdir=/etc/bareos \
  --with-archivedir=/var/lib/bareos/storage \
  --with-scriptdir=/usr/lib/bareos/scripts \
  --with-plugindir=/usr/lib/bareos/plugins \
  --with-working-dir=/var/lib/bareos \
  --with-pid-dir=/var/lib/bareos \
  --with-bsrdir=/var/lib/bareos \
  --with-logdir=/var/log/bareos \
  --with-subsys-dir=/var/lock \
  --enable-smartalloc \
  --disable-conio \
  --enable-readline \
  --enable-batch-insert \
  --enable-dynamic-cats-backends \
  --enable-acl \
  --enable-bat \
  --enable-traymonitor \
  --enable-xattr \
  --enable-scsi-crypto \
  --enable-ndmp \
  --enable-ipv6 \
  --with-postgresql \
  --with-mysql \
  --with-sqlite3 \
  --with-tcp-wrappers \
  --with-openssl \
  --with-dir-user=${DIRECTOR_DAEMON_USER} \
  --with-dir-group=${DAEMON_GROUP} \
  --with-sd-user=${STORAGE_DAEMON_USER} \
  --with-sd-group=${STORAGE_DAEMON_GROUP} \
  --with-fd-user=${FILE_DAEMON_USER} \
  --with-fd-group=${DAEMON_GROUP} \
  --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
  --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
  --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
  --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
  --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
  --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
  --with-basename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \
  --with-hostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \
  --enable-includes

Ajouter le user et le groupe bareos


Installation bareos

make
sudo make install

Puis installation de la base:
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#QQ2-1-41



Aucun commentaire:

Enregistrer un commentaire