Score:0

Bacula - Keyword "WorkingDirectory" not permitted in this resource

cn flag

Setting up bacula to backup my server root folder. Running Ubuntu Server 20.04.4. When testing the bacula-sd.conf file I get the below error:

$ bacula-dir -tc /etc/bacula/bacula-sd.conf
bacula-dir: ERROR TERMINATION at parse_conf.c:1103
Config error: Keyword "WorkingDirectory" not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
            : line 20, col 19 of file /etc/bacula/bacula-sd.conf
  WorkingDirectory = "/var/lib/bacula"

I checked the sd file and I haven't changed the line that it references below:

Storage {                             # definition of myself
  Name = homeserver-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/run/bacula"
  Plugin Directory = "/usr/lib/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 127.0.0.1
}

The folder is owned by the user "bacula:bacula" so there shouldn't be a permission issue here.

Not sure what I'm doing wrong. Please advise next steps in trouble-shooting this.

hr flag
Could there be some spurious non-printing character in the file? Check with `cat -A` or `xxd`/`od` for example
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.