Backup

Perform a backup by running the job via bconsole.

Below is an example of a Fileset and a Job:

Fileset:

FileSet {
  Name = "big-fs-plugin"
  Include {
     Options {
       signature=MD5
     }
     Plugin = "big-fs: workers=5 include=/etc include=/home"
  }
}

Job:

Job {
  Name = "BigFsPluginJob"
  Type = Backup
  Client = host-fd
  FileSet = "big-fs-plugin"
  Storage = File
  Messages = Standard
  Pool = Default
  Maximum Concurrent Jobs = 5
  Write Bootstrap = "/opt/bacula/working_dir/bootstrap.bsr"
  AllowIncompleteJobs = no
  Accurate = yes
}

Joblog:

* run job=BigFsPluginTest level=Full
Using Catalog "MyCatalog"
Run Backup job
JobName:  BigFsPluginTest
Level:    Full
Client:   host-fd
FileSet:  big-fs-plugin
Pool:     Default (From Job resource)
Storage:  File (From Job resource)
When:     2023-12-15 15:55:44
Priority: 10
OK to run? (Yes/mod/no): yes
Job queued. JobId=1
You have messages.
* messages
15-dec 15:55 host-dir JobId 1: Start Backup JobId 1, Job=BigFsPluginTest.2023-12-15_15.55.44_04
15-dec 15:55 host-dir JobId 1: Connected to Storage "File" at host:8103 with TLS
15-dec 15:55 host-dir JobId 1: Using Device "FileStorage" to write.
15-dec 15:55 host-dir JobId 1: Connected to Client "host-fd" at host:8102 with TLS
15-dec 15:55 host-fd JobId 1: Connected to Storage at host:8103 with TLS
15-dec 15:55 host-sd JobId 1: Wrote label to prelabeled Volume "TestVolume001" on File device "FileStorage" (/opt/bacula/archive)
15-dec 15:55 host-fd JobId 1: Connecting to backint process...
15-dec 15:55 host-fd JobId 1: fs-backint process connected.
15-dec 15:55 host-dir JobId 2: Start Backup JobId 2, Job=BigFsPluginTest.2023-12-15_15.55.47_06
15-dec 15:55 host-dir JobId 2: Connected to Storage "File" at host:8103 with TLS
15-dec 15:55 host-dir JobId 2: Using Device "FileStorage" to write.
15-dec 15:55 host-dir JobId 2: Connected to Client "host-fd" at host:8102 with TLS
15-dec 15:55 host-fd JobId 2: Connected to Storage at host:8103 with TLS
15-dec 15:55 host-fd JobId 2: Connecting to backint process...
15-dec 15:55 host-fd JobId 2: fs-backint process connected.
15-dec 15:55 host-dir JobId 3: Start Backup JobId 3, Job=BigFsPluginTest.2023-12-15_15.55.51_08
15-dec 15:55 host-dir JobId 3: Connected to Storage "File" at host:8103 with TLS
15-dec 15:55 host-dir JobId 3: Using Device "FileStorage" to write.
15-dec 15:55 host-dir JobId 3: Connected to Client "host-fd" at host:8102 with TLS
15-dec 15:55 host-fd JobId 3: Connected to Storage at host:8103 with TLS
15-dec 15:55 host-fd JobId 3: Connecting to backint process...
15-dec 15:55 host-fd JobId 3: fs-backint process connected.
15-dec 15:56 host-dir JobId 4: Start Backup JobId 4, Job=BigFsPluginTest.2023-12-15_15.55.59_10
15-dec 15:56 host-dir JobId 4: Connected to Storage "File" at host:8103 with TLS
15-dec 15:56 host-dir JobId 4: Using Device "FileStorage" to write.
15-dec 15:56 host-dir JobId 4: Connected to Client "host-fd" at host:8102 with TLS
15-dec 15:56 host-fd JobId 4: Connected to Storage at host:8103 with TLS
15-dec 15:56 host-fd JobId 4: Connecting to backint process...
15-dec 15:56 host-fd JobId 4: fs-backint process connected.
15-dec 15:56 host-sd JobId 1: Elapsed time=00:00:18, Transfer rate=185.3 K Bytes/second
15-dec 15:56 host-sd JobId 1: Sending spooled attrs to the Director. Despooling 5,202,739 bytes ...
15-dec 15:56 host-dir JobId 1: Bacula host-dir 18.0.0 (20Nov23):
  Build OS:               x86_64-pc-linux-gnu archlinux
  JobId:                  1
  Job:                    BigFsPluginTest.2023-12-15_15.55.44_04
  Backup Level:           Full
  Client:                 "host-fd" 18.0.0 (20Nov23) x86_64-pc-linux-gnu,archlinux,
  FileSet:                "big-fs-plugin" 2023-12-15 15:55:41
  Pool:                   "Default" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         15-dec-2023 15:55:44
  Start time:             15-dec-2023 15:55:46
  End time:               15-dec-2023 15:56:04
  Elapsed time:           18 secs
  Priority:               10
  FD Files Written:       1
  SD Files Written:       1
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       388 (388 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  26.6% 1.4:1
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               yes
  Volume name(s):         TestVolume001
  Volume Session Id:      1
  Volume Session Time:    1752768990
  Last Volume Bytes:      100,427,456 (100.4 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

[...]

15-dec 15:56 host-sd JobId 2: Elapsed time=00:00:15, Transfer rate=7.391 K Bytes/second
15-dec 15:56 host-sd JobId 3: Elapsed time=00:00:11, Transfer rate=3.161 K Bytes/second
15-dec 15:56 host-sd JobId 4: Elapsed time=00:00:04, Transfer rate=1.387 K Bytes/second
15-dec 15:56 host-sd JobId 2: Sending spooled attrs to the Director. Despooling 173,008 bytes ...
15-dec 15:56 host-sd JobId 3: Sending spooled attrs to the Director. Despooling 54,370 bytes ...
15-dec 15:56 host-sd JobId 4: Sending spooled attrs to the Director. Despooling 8,759 bytes ...
15-dec 15:56 host-dir JobId 4: Bacula host-dir 18.0.0 (20Nov23):
  Build OS:               x86_64-pc-linux-gnu archlinux
  JobId:                  4
  Job:                    BigFsPluginTest.2023-12-15_15.55.59_10
  Backup Level:           Incremental, since=1970-01-01 01:00:01
  Client:                 "host-fd" 18.0.0 (20Nov23) x86_64-pc-linux-gnu,archlinux,
  FileSet:                "big-fs-plugin" 2023-12-15 15:55:41
  Pool:                   "Default" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         15-dec-2023 15:55:59
  Start time:             15-dec-2023 15:56:01
  End time:               15-dec-2023 15:56:05
  Elapsed time:           4 secs
  Priority:               10
  FD Files Written:       33
  SD Files Written:       33
  FD Bytes Written:       302 (302 B)
  SD Bytes Written:       5,551 (5.551 KB)
  Rate:                   0.1 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         TestVolume001
  Volume Session Id:      4
  Volume Session Time:    1702652141
  Last Volume Bytes:      4,213,600 (4.213 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

[...]

15-dec 15:56 host-dir JobId 2: Bacula host-dir 18.0.0 (20Nov23):
  Build OS:               x86_64-pc-linux-gnu archlinux
  JobId:                  2
  Job:                    BigFsPluginTest.2023-12-15_15.55.47_06
  Backup Level:           Incremental, since=1970-01-01 01:00:01
  Client:                 "host-fd" 18.0.0 (20Nov23) x86_64-pc-linux-gnu,archlinux,
  FileSet:                "big-fs-plugin" 2023-12-15 15:55:41
  Pool:                   "Default" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         15-dec-2023 15:55:47
  Start time:             15-dec-2023 15:55:50
  End time:               15-dec-2023 15:56:05
  Elapsed time:           15 secs
  Priority:               10
  FD Files Written:       645
  SD Files Written:       645
  FD Bytes Written:       7,423 (7.423 KB)
  SD Bytes Written:       110,879 (110.8 KB)
  Rate:                   0.5 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         TestVolume001
  Volume Session Id:      2
  Volume Session Time:    1702652141
  Last Volume Bytes:      4,213,600 (4.213 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

[...]

15-dec 15:56 host-dir JobId 3: Bacula host-dir 18.0.0 (20Nov23):
  Build OS:               x86_64-pc-linux-gnu archlinux
  JobId:                  3
  Job:                    BigFsPluginTest.2023-12-15_15.55.51_08
  Backup Level:           Incremental, since=1970-01-01 01:00:01
  Client:                 "host-fd" 18.0.0 (20Nov23) x86_64-pc-linux-gnu,archlinux,
  FileSet:                "big-fs-plugin" 2023-12-15 15:55:41
  Pool:                   "Default" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         15-dec-2023 15:55:51
  Start time:             15-dec-2023 15:55:54
  End time:               15-dec-2023 15:56:05
  Elapsed time:           11 secs
  Priority:               10
  FD Files Written:       203
  SD Files Written:       203
  FD Bytes Written:       2,272 (2.272 KB)
  SD Bytes Written:       34,772 (34.77 KB)
  Rate:                   0.2 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         TestVolume001
  Volume Session Id:      3
  Volume Session Time:    1702652141
  Last Volume Bytes:      4,213,600 (4.213 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

[...]

Note

When a Big FS job is started, the initial Big FS job that starts is the control job which will backup a single empty record and then trigger additional worker jobs. It is anticipated that this control job backs up 1 file and 0 bytes.

See also

Next articles:

Go back to: Operations.