Bacula is a great backupsoftware, but sometimes the backup mustn’t use all the available bandwith. bacula itself has no speed limitations built in, but it is easy, to use trickle to accomplish this. I use trickle only on the clients.
Installation
1. get trickle
yum install trickle
now enter /etc/init.d/bacula-fd and change the line which starts the daemon to the following:
# vim /etc/init.d/bacula-fd
... some lines ...
daemon trickle -s -d 3000 -u 3000 /usr/sbin/bacula-fd $2 ${FD_OPTIONS} -c /etc/bacula/bacula-fd.conf
... some lines ...
trickle uses Kbyte in it’s commandline options, so with this settings, the up/down-Speed is limited to 3MB/s = 30MBit/s . Of course you can adjust this value as you like.
service bacula-fd restart
optional: does it work?
Now if you want to check if it works, just start a backup and monitor the traffic with bwm-ng for example
yum install bwm-ng
bwm-ng -t 1000