On 01.01.2020 17:24, aeronex...@gmail.com wrote:
I have update my fileset to include a new exclude statement. I have restarted Bareos (including reboot the server). Unfortunately, Bareos continues to use the old version of the fileset definition for the backup. I do not find an update statement in the manual to force Bareos to use the new fileset definition. bconsole does show the updated fileset I have created. So what is the correct way to get Bareos to use the updated fileset in the backups.

I am on Ubuntu 18.04 server using Bareos 18.2.5-131.1 according to webui

tia


Question is how did you "update" the fileset and is it really used in the job definition.

First things to check - do a "show job=<your-job-name>" and see what's the fileset name and if it matches the fileset you were editing.

Example from my installation:

*show job=srv2-linux
Job {
  Name = "srv2-linux"
  Client = "srv2-fd"
  FileSet = "Linux-minimal-fileset"
  JobDefs = "DefaultJob"
}

(to be on the safe side you can also do the "show client" on the client name to be sure you got the right machine configured for backup with this job)


Now if you have a FileSet (in my case it's called "Linux-minimal-fileset"), you do a "show fileset=<fileset-name>" command. Like this:

*show fileset=Linux-minimal-fileset
FileSet {
  Name = "Linux-minimal-fileset"
  Include {
    Options {
      Signature = MD5
      Compression = GZIP6
      OneFS = No
      AclSupport = Yes
      XattrSupport = Yes
      Fs Type = "btrfs"
      Fs Type = "ext2"
      Fs Type = "ext3"
      Fs Type = "ext4"
      Fs Type = "reiserfs"
      Fs Type = "jfs"
      Fs Type = "xfs"
      Fs Type = "zfs"
    }
    File = "/root"
    File = "/etc"
    File = "/home"
    File = "/var"
    File = "/srv"
    Plugin = "bpipe:file=/_rpmlist_/rpm.lst:reader=/usr/bin/rpm -qa:writer=/bin/bash -c ''xargs yum install -y''"
  }
  Exclude {
    File = "/var/lib/bareos"
    File = "/var/lib/bareos/storage"
    File = "/proc"
    File = "/tmp"
    File = "/var/tmp"
    File = "/.journal"
    File = "/.fsck"
    File = "/srv/backups"
  }
}

If the name of the fileset matches what you edited, but the contents don't, it probably means that you edited a wrong file (try grepping for the fileset name on your /etc, /opt, or /usr/local, depending on how you installed and configured Bareos).

BTW, it's not necessary to restart director after configuration change. It's enough to do a "reload" from bconsole.

Regards,

MK

--
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/c718c4d9-09ac-a98d-7953-db63a2d60dff%40gmail.com.

Reply via email to