Configuration for Built-in bsnapshot Support

Your Backup Job and FileSet should be defined as:

 Job {
  Name = "Quobyte"
  Client = storage-fd
  FileSet = quobyte
  ...
 }

 FileSet {
  Name = quobyte

  # Enable bsnapshot support for Quobyte volumes
  Enable Snapshot = yes

  Include {
   Options {
    Signature = sha1
    # Include all subvolumes
    onefs = no
   }
  File = /quobyte
}

Access to the Quobyte cluster can be configured in the /opt/bacula/etc/bsnapshot.conf bsnapshot configuration file.

root# cat /opt/bacula/etc/bsnapshot.conf
env="QUOBYTE_API=http://10.10.10.17:7860"
env="QUOBYTE_USER=admin"
env="QUOBYTE_PASSWORD=Thisisasecurepassword"

Note

Refer to the Quobyte documentation to use an API Key if needed.

In this example, all Quobyte volumes are available under the /quobyte directory.

It is possible to backup a subset of volumes or tenants by adapting the Fileset configuration:

FileSet {
 Name = quobyte_all_tenants

 # Enable Snapshot support for Quobyte
 Enable Snapshot = yes

 Include {
  Options {
   Compression = zstd
   Signature = sha1
   onefs = no
  }
 File = /quobyte/tenant_1
 File = /quobyte/tenant_2
}
 FileSet {
  Name = quobyte_tenant_1_vol1

  # Enable Snapshot support for Quobyte
  Enable Snapshot = yes

  Include {
   Options {
    Signature = Sha1
  }
  File = /quobyte/tenant_1/vol1
}

Job output example using the bsnapshot plugin on a Quobyte volume:

JobId 879: Start Backup JobId 879, Job=QuobyteVol1.2024-01-16_12.01.51_11
JobId 879: Connected to Storage "NULL" at wa-quobyte-dir:9103 with TLS
JobId 879: Using Device "NULL" to write.
JobId 879: Connected to Client "wa-quobyte-dir-fd" at wa-quobyte-dir:9102 with encryption
JobId 879: Connected to Storage at wa-quobyte-dir:9103 with encryption
JobId 879: Wrote label to prelabeled Volume "Vol-0038" on TAPE device "LTO" (/dev/lto)
JobId 879:    Create Snapshot for /quobyte/tenant_1/vol1
JobId 879:    Delete Snapshot for /quobyte/tenant_1/vol1
JobId 879: Elapsed time=00:36:33, Transfer rate=3.161 M Bytes/second
JobId 879: Sending spooled attrs to the Director. Despooling 634,551 bytes ...
JobId 879: Bacula Enterprise wa-quobyte-dir-dir 18.0.0 (11Jan24):
  Build OS:               x86_64-redhat-linux-gnu-bacula-enterprise redhat (Core)
  JobId:                  879
  Job:                    QuobyteVol1.2024-01-16_12.01.51_11
  Backup Level:           Full
  Client:                 "wa-quobyte-fd" 18.0.0 (11Jan24) x86_64-pc-linux-gnu,redhat,(Core)
  FileSet:                "quobyte_tenant_1_vol1" 2023-12-18 14:58:55
  Pool:                   "DiskBackup365d" (From Job resource)
  Catalog:                "BaculaCatalog" (From Client resource)
  Storage:                "TAPE" (From Command input)
  Scheduled time:         16-jan-2024 12:01:51
  Start time:             16-jan-2024 12:02:53
  End time:               16-jan-2024 12:39:27
  Elapsed time:           36 mins 34 secs
  Priority:               10
  FD Files Written:       2,532
  SD Files Written:       2,532
  FD Bytes Written:       6,933,339,531 (6.933 GB)
  SD Bytes Written:       6,933,732,834 (6.933 GB)
  Rate:                   3160.1 KB/s
  Software Compression:   None
  Comm Line Compression:  6.9% 1.1:1
  Snapshot/VSS:           yes
  Encryption:             no
  Accurate:               no
  Volume name(s):         Vol-0038
  Volume Session Id:      325
  Volume Session Time:    1702658652
  Last Volume Bytes:      6,939,807,455 (6.939 GB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

Go back to the main Quobyte Configuration chapter.

Go back to the main Quobyte page.