Bacula Backup Solution: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 62: Zeile 62:


Note: Existing backup files must be removed from backup directory.
Note: Existing backup files must be removed from backup directory.
= Install Baculum API and Web GUI Tools =


=Backup von Windows-Clients (DE)=
=Backup von Windows-Clients (DE)=

Version vom 31. August 2018, 15:39 Uhr

Install Bacula on Linux (EN)

This article describes how to install the latest Bacula version on Linux.

Download current version:

wget -qO- http://bacula.us/current | tar -xzvf - -C /usr/src

Goto the source directory:

cd /usr/src/bacula*

Configure the code, changing the last options below accordingly (normally the last three):

./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/etc/bacula/scripts --with-working-dir=/var/lib/bacula --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=<pathname of backup disk> --with-job-email=<mail address> --with-hostname=192.168.x.x

Build, install and enable the Bacula daemons start at boot time:

make -j8 && make install && make install-autostart

Goto the scripts directory:

cd /etc/bacula/scripts

Create the database:

./create_bacula_database -u root -p

Create the database tables:

./make_bacula_tables -u root -p

Create the database user:

./grant_bacula_privileges -u root -p

Start the Bacula daemons:

service bacula-dir start
service bacula-fd start
service bacula-sd start

Remark: The steps are orginally taken from http://bacula.us/compilation/ and slightly adjusted for personal use.

Content of this site from 25th of Sep 2017: Bacula.us-Bacula 903 Compilation and Installation Commands.pdf

Reset Bacula after testing phase (EN)

Benefits:

  • Database Catalog will be initialized.
  • Executed Jobs will disappear.
  • JobIDs and Volume numbering will be resetted.
  • We keep the configuration of the Bacula Director, the Client and the Storage Daemon as well as File Sets, Backup Schedules, Backup Job definitions, Volume Pools and Storage Devices.


How-To:


1. Stop Bacula daemons

sudo bacula stop

2. Drop database tables (system will ask for password of database user „root@localhost“)

sudo sh -c "cd /etc/bacula/scripts; ./drop_bacula_tables -u root -p"

3. Create new database tables (system will ask for password of database user „root@localhost“)

sudo sh -c "cd /etc/bacula/scripts; ./make_bacula_tables -u root -p"

4. Delete all files in /var/lib/bacula (File ".my.cnf" is important and will not be deleted)

sudo sh -c "cd /var/lib/bacula; rm *"

5. Start Bacula daemons

sudo bacula start

Note: Existing backup files must be removed from backup directory.

Install Baculum API and Web GUI Tools

Backup von Windows-Clients (DE)

Under construction

Backup Prozess im Detail (DE)

Anforderung

  • In regelmäßgigen Abständen sollen Backups des Servers und weiterer Computer (z. B. PC, Notebook) durchgeführt werden.
  • Es sollen keine manuellen Schritte notwendig sein.
  • Die Backups sollen auf dem Server abgelegt werden.

Umsetzung

  • Der Bacula Director auf dem Server steuert den Ablauf aller Backups.
  • Auf allen zu sichernden Computern ist ein Bacula Filedaemon installiert.
  • Ein Computer kann gesichert werden wenn eine der folgenden Voraussetzungen erfüllt ist:
    • Der Computer ist eingeschaltet und über das Netzwerk erreichbar.
    • Der Computer ist ausgeschaltet und kann automatisch über ein vom Server initiiertes "Wake on LAN"-Signal eingeschaltet werden.