On 23/07/19 19:16, Josip Deanovic wrote:

Have you checked both file systems for the ACL support?
ACL support might be disabled.
The client in question (fd) also happens to be Bacula director and sd.
An yes, it does support ACL:

cat /etc/mtab | grep acl | grep var
/dev/mapper/vg0-var /var ext4 rw,relatime,user_xattr,acl,barrier=0,stripe=256,data=ordered 0 0

grep acl /etc/mke2fs.conf
    default_mntopts = acl,user_xattr

ACLs are widely used for services on the client.
E.g. after I restore /var/lib/samba the service refuses to start without the right ACL structure.

The tapes definitely support ACL as well.
I've added a test directory to backups another, similar client (Ubuntu 16) and ran a couple of setfacl commands on them.
The next day restore had them all as expected.

My entire client.conf file of the troublesome one (Debian 7) with a few bits skipped / anonimised:

*******************************************************
*******************************************************
*******************************************************
Client {
  Name = server_fd
  Address = server.company.co.uk
  Catalog = server_catalog
  Password = "XXXXXXXX"
  File Retention = 65 days
  Job Retention = 2 years
  AutoPrune = yes
}


# --------------------------------------------------------------------------
# File Set Definitions
# --------------------------------------------------------------------------
#
# Reminder: If you change a file set definition then any job which uses
# that file set will perform a full backup when next scheduled, regardless
# of the level set in the schedule.

FileSet {
  Name = server_fileset
  Include {
    Options {
      signature = SHA1
      ##sparse = yes
      xattrsupport = yes
      aclsupport = yes
      noatime = yes
      checkfilechanges = yes
    }
    Options {
      exclude = yes

      # No need to backup cached apt files (but keep directories!!)
      regexfile = "^/var/cache/apt/.*\.(bin|deb)$"
      regexfile = ...
      regexdir = ...
      regexdir = ...
      regexdir = ...
    }
    File = "/"
    File = "/boot"
    File = "/var"
    File = "/mnt/..."
    File = "/mnt/..."
    File = "/mnt/..."
  }
  Exclude {
    File = "/var/cache/apache2/mod_disk_cache"
    File = "/var/tmp"
    File = "/mnt/..."
    File = "/mnt/..."
    File = "/mnt/..."
  }
}

FileSet {
  Name = server_mysql_fileset
  Include {
    Options {
      signature = SHA1
      recurse = no
      checkfilechanges = yes
    }
    File = "/mnt/.../mysql/full_dump.sql"
  }
}


# --------------------------------------------------------------------------
# Job Definitions
# --------------------------------------------------------------------------

Job {
  Name = server_backup
  JobDefs = critical_jobtpl
  Client = server_fd
  FileSet = server_fileset
  Priority = 1

  # Because the MySQL database is also running on server, we want to defer
  # writing file attributes until the job completes in order to help
  # maximise tape drive throughput.
  Spool Data = no
  Spool Attributes = yes
}

Job {
  Name = server_mysql_backup
  JobDefs = critical_jobtpl
  Client = server_fd
  FileSet = server_mysql_fileset
  Priority = 2
  Spool Data = no
  Write Bootstrap = "/var/lib/bacula/bsr/skippy_mysql.bsr"
  Client Run Before Job = "/etc/bacula/scripts/mysql_dump_start.sh"
  Client Run After Job = "/etc/bacula/scripts/mysql_dump_end.sh"

  # This job only does a full backup.  For incrementals, we rely on the
  # standard server job above to include the MySQL binary logs in
  # "/var/log/mysql".  The "mysqlbinlog" tool can then be used to replay
  # any transactions since the last full dump.
  Schedule = weekly_sched
}

*******************************************************
*******************************************************
*******************************************************

My Bacula version 5.2.6
I am really puzzled and worried by this...


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to