Buying for a Team? Gift This Course
Wishlisted Wishlist

Please confirm that you want to add Bacula 3: bpipe to stream dumps & clones directly to backup to your Wishlist.

Add to Wishlist

Bacula 3: bpipe to stream dumps & clones directly to backup

bpipe plugin to stream dumps, VM clones and another data to your hot backup (MySQL, PostgreSQL, Firebird, Xen etc.)
1.0 (1 rating)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
20 students enrolled
Last updated 8/2015
English
$10 $30 67% off
2 days left at this price!
30-Day Money-Back Guarantee
Includes:
  • 34 mins on-demand video
  • 8 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
Backup several applications with plugin
Automate the restore of several applications
Use the plugin to backup other applications
Deploy backup routines that don't need to use disk space in the clients machines for application intermediate backup
View Curriculum
Requirements
  • Basic Bacula - Bacula 1 Training
Description

*This s the continuation of the course Bacula 1: Open Source Backup Software, available at Udemy"

Using bpipe is the fastest, easiest, most automated and economic way of doing hot backups of specific application such Postgresql, Mysql, Firebird, Oracle databases; Xen and Kvm Virtual Machines export / snapshots; tar packages with several files; and more!

The bpipe plugins automatically creates, writes and reads from a FIFO, and is able to restore information directly to your application. E.g.: restore a database directly from Bacula, without the need to do any further operation. And you can do that with Bacula Community or Enterprise.

Any information that I send though the echo it goes but is not really stored on the FIFO; it is read directly by the Bacula and written into backup volume. You don't use disk space for that.

Training example applications:

  • MySQL
  • PostgreSQL
  • Firebird
  • LDAP
  • XenServer
  • Tar
  • Echo
  • etc.
Who is the target audience?
  • Bacula Users
  • DevOps
  • IT Managers
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 12 Lectures Collapse All 12 Lectures 34:19
+
Introduction
2 Lectures 06:18

Me, again!

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 1: If you need professional help with Bacula I'm looking for a permanent job in USA or Europe. Please recommend me. =)

Remark 2: If you need in-company Bacula training or implementation worldwide send a email to heitor@bacula.com.br

Preview 01:39

Article: http://bacula.us/using-bpipe-to-stream-dumps-vm-clones-and-another-data-to-your-backup/

Preview 04:39
+
bpipe Deploy
2 Lectures 03:49

Also, make sure your bacula-fd is running with root user. Edit /etc/init.d/bacula-fd and verify the values:

BUSER= root

BGROUP= root

Preview 01:56

+
bpipe examples
7 Lectures 23:29

Plugin = "bpipe:/mnt/fifo/test.txt:/bin/echo fifo_teste:/usr/bin/tee /tmp/test.txt"

A simple echo FIFO backup
04:14

Plugin = "bpipe:/mnt/fifo/test.tar:/bin/tar -cf - /etc:/bin/tar -C /tmp -xvf -"

tar files
05:20

Plugin = "bpipe:/mnt/fifo/heitorfaria.sql:mysqldump -u root -p123456 --databases heitorfaria:mysql -u root -p123456"

# Plugin = "bpipe:/mnt/fifo/heitorfaria2.sql:mysqldump -u root -p123456 --databases heitorfaria:dd of=/tmp/heitorfaria2.sql" 

MySQL databases
03:28

Plugin = "bpipe:/mnt/fifo/heitorpg.sql:sudo -u postgres pg_dump --format=c heitorpg:sudo -u postgres pg_restore -d template1 -C"

# Plugin = "bpipe:/mnt/fifo/heitorpg2.sql:sudo -u postgres pg_dump heitorpg:tee /tmp/heitorpg2.sql"

PostgreSQL databases
03:18

Plugin = "bpipe:/mnt/fifo/heitorpg.sql:gbak -backup heitorfire stdout:gbak -replace stdin heitorfire_2"

Firebird Databases
01:26

Plugin = "bpipe:/mnt/fifo/ldap.ldif:slapcat -l /dev/stdout:/usr/sbin/slapadd -l /dev/stdin"

# Plugin = "bpipe:/mnt/fifo/ldap.ldif:slapcat -l /dev/stdout:dd of=/tmp/ldap_restore.ldif"

REMARK: always stop the LDAP daemon before restoring with the slapadd command.

Another example, specifying domain and configuration file for dump:

Plugin = "bpipe:/tmp/ldap_bkp.ldif:slapcat -f /etc/ldap/slapd.conf -b "dc=ifnmg,dc=edu,dc=br" -l /dev/stdout:tee /tmp/ldap_restore.ldif"

LDAP Bases
02:42

  • Safer method - restore to file:

Plugin = "bpipe:/tmp/vm_name.xva:snapshot=`xe vm-snapshot uuid=vm_uuid new-name-label=vm_name_snps` && xe template-param-set is-a-template=false uuid=$snapshot && xe vm-export vm=$snapshot filename=:dd of=/mnt/vm_name.xva"

  • Restore to Xen Server automatically - import:

Plugin = "bpipe:/tmp/vm_name.xva:snapshot=`xe vm-snapshot uuid=vm_uuid new-name-label=vm_name_snps` && xe template-param-set is-a-template=false uuid=$snapshot && xe vm-export vm=$snapshot filename=:xe vm-import filename=/dev/stdin sr-uuid=xen_storage_uuid"

Remark 1.: in order to fetch storage uuid use, in shell: xe pbd-list

It's advisible to remove generated snapshots during backups.

e.g.: xe vm-uninstall force=true vm=nome_vm_snps

  • ClientRunAfterJob script sample to delete all Xen snapshots since Bacula Job already backuped the VMs:

for i in `xe snapshot-list --minimal | sed -e 's/,/\ /g'` ; do xe snapshot-uninstall force=true uuid=$i ; done

  • A script to dinamically configure Bacula to backup all Xen host running VM: 

http://bacula.us/citrix-xen-bpipe-configuration-script-to-backup-all-running-virtual-machines/


Xenserver Virtual Machines
03:01
+
Conclusion
1 Lecture 00:43
See you!
00:43
About the Instructor
4.4 Average rating
239 Reviews
900 Students
10 Courses
Bacula Backup Software Book Author and Teacher

"Bacula: Open Source Backup Tool" and "Open Licenses & Fundamental Rights" books author (both in portuguese). Bacula Training instructor at Udemy. Law Graduated. IT Service Manager and Project Management extension degrees. Works on a brazilian governmental company called SERPRO and for Neocode Software (Canada). Bacula brazilian community founder. Has plenty of experience as a server / backup systems administrator (Windows, Linux, Netware, directory services) and as IT / Project manager. ITIL-F, TOEIC (Golden Certificate) and LPIC-III certificated professional.

Report Abuse