Support Center

Changing the Bacula SD default working directory path

Last Updated: Jun 11, 2014 04:23PM EDT
If you don't have sufficient space on your / or /opt partition for the default bacula working directory (/opt/bacula/working/), we can remedy the problem with a few configuration changes. You will have to be comfortable making these changes via ssh. If you are not, please open a support ticket with access credentials and we can take care of it for you.

NOTE: Running jobs will be interrupted, so please make sure you wait for anything you want to finish first!

First, determine the new path you would like to move the working folder too. Normally this will be the same partition you store your backup volumes on, in this case we'll move the working folder from /opt/bacula to /backup.
service bacula-sd stop
mv /opt/bacula/working/ /backup/
cp /opt/bacula/etc/bacula-sd.conf /opt/bacula/etc/bacula-sd.conf.bak
nano /opt/bacula/etc/bacula-sd.conf
WorkingDirectory = "/opt/bacula/working"
  Pid Directory = "/opt/bacula/working"

to (remember, this may change depending on the new path you selected above for your working folder):
WorkingDirectory = "/backup/working"
  Pid Directory = "/backup/working"

Save the changes and exit editting the file.

Now we need to update the working path in the init.d script as well.
nano /etc/init.d/bacula-sd

[ $RETVAL -eq 0 ] && touch /opt/bacula/working/bacula-sd

[ $RETVAL -eq 0 ] && touch /backup/working/bacula-sd


[ $RETVAL -eq 0 ] && rm -f /opt/bacula/working/bacula-sd

[ $RETVAL -eq 0 ] && rm -f /bacula/working/bacula-sd

Save the changes and exit editting the file.

Now start the bacula-sd process backup and ensure it's running:
service bacula-sd start
service bacula-sd status

Contact Us
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found