On 11/7/16 9:56 PM, Tripp Donnelly wrote:
I want to use One FS = No to allow bareos to backup all mount points. This is 
in the sample config, but it does not appear to have any effect. I have tried 
onefs=no, One FS = No, and a couple other combinations. I poked around the code 
on Github but I'm not very good at understanding it.

No matter what I do I get messages like: 2016-11-07 22:30:25    backup1-fd 
JobId 30: /home is a different filesystem. Will not descend from / into it.

Just to be sure I got to the webui restore ui and confirm /home is listed but 
is empty.

Here is my current Fileset definition. Any help would be appreciated:

FileSet {
  Name = "Linux All"
  Include {
    Options {
      Signature = MD5 # calculate md5 checksum per file
      OneFS = No
      FS Type = ext2  # filesystems of given types will be backed up
      FS Type = ext3  # others will be ignored
      FS Type = ext4
      FS Type = xfs
      FS Type = zfs
      FS Type = reiserfs
      FS Type = jfs
      FS Type = btrfs
    }
    Options {
      Exclude = yes
      RegexDir = "^/data01/.*/mysql"
      RegexDir = "^/var/lib/docker/containers/.*/shm"
    }
    File = /
    File = /data01
  }
  # Things that usually have to be excluded
  # You have to exclude /var/lib/bareos/storage
  # on your bareos server
  Exclude {
    File = /var/lib/bareos
    File = /var/lib/bareos/storage
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
    File = /home/bareos
    File = /var/lib/docker/devicemapper/mnt/
    File = /var/lib/docker/devicemapper/devicemapper/data
    File = /dev
    File = /tmp
    File = /sys
    File = /run
  }

}

*version
backup1-dir Version: 16.2.4 (01 July 2016) x86_64-redhat-linux-gnu redhat 
CentOS Linux release 7.0.1406 (Core)  CentOS_7 x86_64



Hmm, here is my FileSet that seems to work for me:

file set {
  name = "standard"
  include {
    file = "/"
    exclude dir containing = ".no-backup"
    exclude dir containing = "NO-BACKUP"
    options {
compression = gzip4 # gzip4 will saturate some slower CPUs with good IO sub-systems, like Hador signature = sha1 # I think it only does the checksum if it backups the file, uness 1 or 5 is in verify verify = ipnugsm # inode, perms, num links, uid, gid, size, mtime accurate = ipnugsm # inode, perms, num links, uid, gid, size, mtime one fs = no # Do all local (see fs type) filesystems on the client
      fs type = ufs
      fs type = zfs
      fs type = ext2
      fs type = ext3
      fs type = ext4
      fs type = xfs
      fs type = zfs
      fs type = reiserfs
      fs type = jfs
      fs type = btrfs
      acl support = yes
      xattr support = yes
      sparse = yes
      no atime = yes
      check file changes = no   # too many false positives
    }
  }
  exclude {
    file = "/var/db/bareos"
    file = "/tmp"
    file = "/var/tmp"
    file = ".journal"
    file = ".fsck"
    file = ".snap"
    file = "/local-project/tmp"
file = "</usr/local/etc/bareos/excludes.director" # Exclude list on the director file = "\\</usr/local/etc/bareos/excludes" # The backslashes mean the file is on the client
    file = "\\</usr/local/etc/bareos/excludes.auto"
  }
}

I've tried multiple Options blocks with out luck, so my first suggestion would be to remove the second Options block that tries to exclude /data01/.*/mysql and /var/lib/docker/containers/.*/shm and see if that changes things.

Assuming that it worked, I think your second "File = /data01" is redundant.

My approach to this problem was liberal use of ".no-backup" files or in one case a shell script that runs before a backup job to populate an excludes file on the client

And to double check, /home is a filesystem of type ext2, ext3, ext4, xfs, zfs, reiserfs, jfs, or btrfs, right?

I'm not an expert on the Include/Exclude and regex/wild options. But I'm pretty sure that your second Options block isn't doing the right thing. Here is one that I built, with lots of trial and error, to backup /jails/*/var/log

# Grab /jails/*/var/log but nothing else under /jails.
# Bareos makes this really complicated.
file set {
  name = "jail-logs"
  include {
    file = "/jails"
# This is convoluted since the wild card is not the last item of the path. # See http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-1440009.5.3 # The regex includes the leafs we care about, then the wild dir and finally a wild
    # have to explode the directories under the top level.
    # And then finally exclude everything else.
    options {
      regex dir = "/jails/[^/]+$"
      wild dir = "/jails/*/var"
      wild dir = "/jails/*/var/log"
      wild = "/jails/*/var/log/*"
      compression = gzip4
      signature = sha1
verify = ipnugsm # inode, perms, num links, uid, gid, size, mtime accurate = ipnugsm # inode, perms, num links, uid, gid, size, mtime
      one fs = no
      acl support = yes
      xattr support = yes
      sparse = yes
      no atime = yes
check file changes = no # too many false positives if turned on, especially for logs
    }
    options {
      wild = "/jails/*"
      exclude = yes
    }
  }
}

--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to