Changing the ClusterLogics SD default working directory path

Changing the ClusterLogics SD default working directory path

If you don't have sufficient space on your / or /opt partition for the default ClusterLogics 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
Change:
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

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

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

AND

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

to:
[ $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