
And at the first day God made.... Backup! =)
Fetch the written course complimentary material - my Bacula ebook from Amazon.com: https://www.amazon.com/Bacula-Open-Source-Backup-Software-ebook/dp/B01MG7U5M4/ref=sr_1_1?ie=UTF8&qid=1479841355&sr=8-1&keywords=bacula
My website: http://www.bacula.us
Bacula full Manual: http://www.bacula.us/?page_id=1880
Be my friend at Facebook: https://www.facebook.com/heitor.faria
Remark: If you need in-company Bacula training or implementation worldwide send a email to heitor@bacula.com.br
Why having a backup software is important and will still be for a long time.
Backup concepts for everyone. Notice that my english is getting better along the next lessons!
Can you distinguish differential and incremental backups? I bet you wont forget. =)
General recommendations to not have your blood sucked. Muahhhhh
A worldwide champion strategy to waste less backup storage for maximum backup data retention!
It was good for you? For me it was great! Buy my course and be passionated to Bacula as I am!
Explore bacula open source backup software, its community edition versus enterprise, and install options from source or packages, with deduplication, S3 cloud storage, and a rest api.
Learn to install the Bacula 9.4 community graphical user interface on CentOS 7, enabling administration, monitoring, multi-user access with ACLs, and API-driven configuration.
*These days it is more advisible to start installing from source code (Section 7), and take advantage of latest Bacula features. Complementar guide: http://bacula.us/compilation/
Just for the records I'm using a 7.6 Debian. You can make the same installation on Red Rat based systems using yum. The package names are basically the same.
If you still don't have a virtual machine you can download a VBox one from the complementar material.
The first time we never forget. =)
This is the main Bacula configuration file. It manages most of your backup system behavior. Just pay attention to its structure and the most important features.
Explore Bacula dir.conf concepts—define file sets, schedules, clients, and storage to back up Linux and Windows systems; configure jobs, catalogs, and network security with IP addresses, passwords, and storage devices.
Configure bacula-dir.conf to manage the catalog, messages, pools, and apply changes, including database connection, mail notifications, and tape pool settings for backups.
Examples of how to work with disk backups.
WARNING! For different Virtual Disk Autochangers devices you must use different Media Types for every different Archive Devices (mount points).
Learn how to configure bacula-fd.conf so the director can contact the client to run backups and restores, including multiple backup jobs, with exact name matching, plain-text passwords, and optional encryption.
The Bacula bconsole and BAT (GUI) desktop consoles can be installed on Bacula Director, but it's much more elegant and secure to have them at your administrator workstation (Linux or Windows), so you don't have to SSH or remote terminal to your server.
Install and configure a Bacula client on a new linux machine, update repositories, install bacula-fd, configure director settings, secure with passwords, start services, and test connectivity.
Configure and run a Bacula backup job for a file server client by duplicating a job, creating a file set, and testing the configuration.
Select the client and files to restore, mark all with an asterisk, and run the restore job to the default path on the target machine, monitor restore job messages.
Install Windows Bacula client with the correct architecture and version, using automatic configuration and the template to match the director address, then test the connection and open firewall port 9102.
Create and name a Bacula backup job for a Windows client, define a new file set, simulate the backup, and run an incremental-to-full backup with VSS snapshots.
Learn to run a restore job in Bacula by selecting the most recent Windows client backup, navigating volumes, selecting files, and executing the restore.
It's important to recover Windows disasters purposes if you don't do another types of OS backup (e. g. virtual machine full image backup).
"The tape said it can fit 400 Gb, but it hardly holds 300 Gb! HP is stealing for me." - Silly boy.
This is the real deal. Remember that Volume Retention only starts to run if volume is used or full.
Daily, Weekly and Monthly pools examples. But if you are smart you can make any strategy you want with my punk rock lessons.
1. Some companies also uses Yearly backups if they need to keep backup for years (one per year).
2. And don't forget! Don't mix volumes from different storages on the same pool!
Configure Bacula backups with flexible schedules, prioritizing the catalog job, and set daily, weekly, and monthly cycles using days of week or keywords, with automatic volumes and optional compression.
This option can be nasty: the vampire may be too hungry for blood!
File Retention: retention of file indexes on Bacula database. Without that information you can't restore just a few files from a whole backup job.
Job Retention: retention of job index on Bacula database. Without that, the only way to restore a job is rebuilding its indexes on Bacula database using the bscan command, what can take some time and be painful.
Are you a forever alone guy? Bacula will send you emails every night! =)
1. Edit postfix configuration file:
vi /etc/postfix/main.cf
2. Remove the following lines:
smtp_sasl_auth_enable = yes
and
relayhost =
3. Add the following lines:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes
4. Save and exit.
5. Create and edit a new file:
vi /etc/postfix/sasl_passwd
6. Add this line, replacing the mail address and password with your mail credential:
[smtp.gmail.com]:587 user@gmail.com:mail_password
7. Run the commands:
postmap /etc/postfix/sasl_passwd
postfix reload
8. Run a job and wait for the email. You can check mail sending error messages at: /var/log/mail.log
*In my website there are always updated steps for Bacula source code deploy than bellow: http://bacula.us/compilation
===========================================================================
Direct link to Bacula Source Forge project files: http://sourceforge.net/projects/bacula/files/
And/or just use the commands:
cd /usr/src
wget http://downloads.sourceforge.net/project/bacula/bacula/7.0.5/bacula-7.0.5.tar.gz
tar -xzvf bacula-7.0.5.tar.gz
cd ./bacula-7.0.5
Install:
apt-get install build-essential pkg-config libmysql++-dev libssl-dev libreadline6-dev
./configure --with-mysql --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/etc/bacula/scripts --with-working-dir=/var/lib/bacula
apt-get remove bacula-director-mysql bacula-sd-mysql bacula-fd bacula-console
1. Just do a minor ajust at the Makefile (only for 32 bits Debian):
vi /usr/src/bacula-7.0.5/src/cats/Makefile
2. Change the following line value from nothing (only for 32 bits Debian):
MYSQL_LIBS =
to:
MYSQL_LIBS = /usr/lib/i386-linux-gnu/libmysqlclient.a
3. Save and exit.
4. Procede with compilation and installation (the make -j8 speeds up the compilation since it may use up to 8 processors in parallel processing). The make install-autostart install the scripts to automatic start Bacula daemons at boot time:
make -j8 && make install && make install-autostart
5. Restart all Bacula daemons:
/etc/init.d/bacula-fd restart
/etc/init.d/bacula-sd restart
/etc/init.d/bacula-dir restart
6. Finish with a little permission fix:
chown -R bacula /var/lib/bacula/
7. Done! Rock with your new 7.0.x Bacula.
1. Disable the Bacula Backup Catalog Job RunAfter script, so you can always have a dump of your database handy.
2. Run a Bacula Backup Catalog Job.
3. You can simulate a disaster deleting your bacula database at the mysql (or pgsql) console:
mysql -u root -p(password)
drop database bacula;
4. To restore your dump, go to your database dump directory:
cd /var/lib/bacula
5. And then mysql console (e. g.):
mysql -u root -p(password)
create database bacula;
use bacula;
\. bacula.sql
6. Your database should be restored.
1. You can simulate a disaster using the delete command on bconsole to delete some volumes.
2. bscan example (disk):
bscan -s -m -c /etc/bacula/bacula-sd.conf -v -V "daily-0|daily-1" /backup -u root -P (db_password)
3. bscan example (tape):
bscan -s -m -c /etc/bacula/bacula-sd.conf -v -V daily-0 /dev/nst0 -u root -P (db_password)
1. bls to list contents from a volume:
bls /backup/daily-1
2. bextract restoring everything from a volume to /tmp:
bextract -c /etc/bacula/bacula-sd.conf -V daily-0 /backup /tmp
3. Creating a specific list of files to restore (e. g.: Bacula Director essential files):
vi /tmp/list
Insert:
/etc/bacula/*.conf
*bacula.sql
4. bextract to restore only listed files on /tmp/list:
bextract -i /tmp/list -c /etc/bacula/bacula-sd.conf -V daily-1 /backup /tmp
The course presents the theory and practice of backups, covering installation, recovery, backup specific tools, disaster recovery and many other important aspects of safe and reliable backups. Real situations recording and retrieval data will be simulated.
The course is very practical: 10% theory / 90% hands-on, and all the commands are availale on the training documentation.
Some topics:
* Backup Theory
* Backup Policies
* Types, myths, topologies and backup strategies (GFS).
* Bacula Key Features and Architeture
* Bacula Server Installation and Configuration on Linux
* Installing and Configuring the Bacula Client (Linux and Windows)
* Data Compression
* Configuration and Operation of: disk storages, magnetic tape drives and autochangers
* Bacula Commands
* Full and partial data restore
* Graphical Interfaces
* Bacula Server disasters recovery
* Run and After Backup scripts
* Specific applications backup: virtual machines, databases, mail servers etc.
* Volumes Copy and Migration
* Files Deduplication
* Exercises
Everyone who works with backup or need corporate data protection should do this training in order to know more about the inner workings of this wonderful open source backup tool. It's also great for IT university students and teachers, since it allows it's code studying and modification.