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

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