Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you set up a job in bacula to back up a windows machine via SMB (machine does not have the bacula agent installed)?

According to the feature set this is supported.

I would imagine somewhere I need to define the \machinename\c$


share|improve this question
up vote 1 down vote accepted

First of all, this is pretty highly discouraged by bacula devs, it slows down jobs a lot, and due to SMB file handling, can cause issues (like weirdly named files). The client takes like 2 minutes to install and I haven't had issues with it.

All that said though, there are a couple of ways to do it. As far as I know, bacula doesn't work with SMB directly, you have to mount the shares using SMBFS/CIFS on the filesystem and then go from there.

First option, you could use a third machine or the director box to mount the SMB share permanently and then just add that path to the job.

The other option would be to write a quick little script and use the RunBeforeJob directive to mount the share before you backup and then the RunAfterJob directive to disconnect after the job is finished. Once again, you would just add the mount point to the job.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.