Bacula including other configuration files

If you wish to break your configuration file into smaller pieces, you can do so by including other files using the syntax @filename where filename is the full path and filename of another file. The @filename specification can be given anywhere a primitive token would appear.

restore bacula catalog from volumes

ls -1 /var/backups/bacula/Vol* | perl -ne 'print "Volume=$_"' > bscan.bsr
 
bscan -s -m -b bscan.bsr -u user -P password -S /var/backups/bacula

-b bootstrap      specify a bootstrap file
-m                update media info in database
-s                synchronize or store in database
-S                show scan progress periodically

upgrade bacula to 5.0.x


As always, both the Director and Storage daemon must be upgraded at
the same time, and on any given machine, you must run only one version
of Bacula. This means that on the Director and Storage daemon machines,
you *must* upgrade your File daemon as well.

Older 3.0.x and possibly 2.4.x File Daemons are compatible with the 5.0.0
Director and Storage daemons. There should be no need to upgrade older File
Daemons immediately. However, we recommend that you do so as soon
as is reasonable for your situation.

convert a 2.4.x (version 10) catalog to 3.0.0 (version 11)

Bacula: prune all volumes from all pools

http://old.nabble.com/prune-from-a-script-td16259610.html

#!/bin/sh
 
volumes=`mysql -ubacula -B -e'select VolumeName from Media order by VolumeName;' bacula | tail -n+2`
 
for vol in `echo $volumes`
do
   echo "prune volume=${vol} yes" | bconsole
done 

User tags

iostat encrypt cfq language ssh virtualbox qemu APU iops ipmitool xargs rtsp tar soa firefox storage ulimit build mariadb SYN sysrq slab leap second puppet rsync debian iowait mount apache DRBD gpg shorewall LVM AMD wget top fail2ban dpkg fio MegaRAID profiling raid SSD openvpn vim sysctl core dump 3Ware StorMan alien arping oprofile glusterfs gre shellshock jackd dhcp numa iSCSI ardour php lts opcontrol sysfs pacemaker boot ansible vtysh PXE ip lstat lenny sysresccd grub lubuntu RT arp deb git hdparm chromium graylog2 sysctl.conf bridge cpanm chroot pam replication Adaptec alsa gtk OpenStack asoundrc java wordpress raid5 kernel newgrp routing KVM htop nfs4 etch rpm equalizer perlbrew rtl8723be pvmove tun xhost tzdata usb lxc tftp munin xen exim bash zRam pulseaudio groups ha in-addr.arpa OpenSSL squeeze bind docker-compose source security erase ps taskset HTTPS swap NFS dstat performance CentOS bacula /etc/network/interfaces nvidia ubuntu bonding dns dovecot bug gdb qcow2 search cache exim4 vlan iptables keyboard CPAN bscan glxinfo opreport perl MODx radeon vrrp su docker ddos SuperMicro cluster video quagga backup arch route find netfilter cpu usage sftp virsh cpu mdadm drupal parallel noop apt rkhunter Swift Salt elliptics centos 7 mysql vrrpd HDFS sublime X forwarding tool sg regex youtube debootstrap conntrack nginx LSI fido7 scsi freedos hotplug cgroups virt-install ipmi proxy SpamAssassin limit_conn xfs initrd backtrace tin corosync idmapd mkfs dhclient PTR Areca flash .htaccess tiger