Restore

Restore operations for the Big FS Plugin job sets are handled by Bacula in the same manner as any other any other restore. Users are not required to modify their standard restore workflow.

In the case of point-in-time restores using, for instance bconsole’s option 6, “Select backup for a client before a specified time”, Bacula will automatically make sure that all worker backup jobs that had been run concurrently as part of a Big FS backup set are pulled into the restore directory tree. This guarantees that the restore tree from which files are selected is complete.

* restore fileset=big-fs-plugin select all done
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Client: host-fd
+-------+-------+----------+----------+---------------------+---------------+
| jobid | level | jobfiles | jobbytes | starttime           | volumename    |
+-------+-------+----------+----------+---------------------+---------------+
|     1 | F     |   19,249 |  205,589 | 2023-12-15 15:55:46 | TestVolume001 |
|     2 | I     |      645 |    7,423 | 2023-12-15 15:55:50 | TestVolume001 |
|     3 | I     |      203 |    2,272 | 2023-12-15 15:55:54 | TestVolume001 |
|     4 | I     |       33 |      302 | 2023-12-15 15:56:01 | TestVolume001 |
+-------+-------+----------+----------+---------------------+---------------+
You have selected the following JobIds: 1,2,3,4

Building directory tree for JobId(s) 1,2,3,4 ...  ++++++++++++++++++++++++++++++++++++++++++++++++++++
20,126 files inserted into the tree and marked for extraction.
Bootstrap records written to .../working/host-dir.restore.1.bsr

The Job will require the following (*=>InChanger):
Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

TestVolume001             File                      FileStorage

Volumes marked with "*" are in the Autochanger.


20,130 files selected to be restored.

Using Catalog "MyCatalog"
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /opt/bacula//working/host-dir.restore.1.bsr
Where:           /tmp/bacula-restores
Replace:         Always
FileSet:         Full Set
Backup Client:   host-fd
Restore Client:  host-fd
Storage:         File
When:            2023-12-15 15:56:06
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*
OK to run? (Yes/mod/no): yes
Job queued. JobId=5
You have messages.
* messages
15-dec 15:56 host-dir JobId 5: Start Restore Job RestoreFiles.2023-12-15_15.56.06_12
15-dec 15:56 host-dir JobId 5: Restoring files from JobId(s) 1,2,3,4
15-dec 15:56 host-dir JobId 5: Found a volume cycle in the bootstrap, fixing automatically the reading process
15-dec 15:56 host-dir JobId 5: Connected to Storage "File" at host:8103 with TLS
15-dec 15:56 host-dir JobId 5: Using Device "FileStorage" to read.
15-dec 15:56 host-dir JobId 5: Connected to Client "host-fd" at host:8102 with TLS
15-dec 15:56 host-fd JobId 5: Connected to Storage at host:8103 with TLS
15-dec 15:56 host-sd JobId 5: Ready to read from volume "TestVolume001" on File device "FileStorage" (/opt/bacula/archive).
15-dec 15:56 host-sd JobId 5: Forward spacing Volume "TestVolume001" to addr=242
15-dec 15:56 host-sd JobId 5: Elapsed time=00:00:01, Transfer rate=3.336 M Bytes/second
15-dec 15:56 host-dir JobId 5: Connected to Storage "File" at host:8103 with TLS
15-dec 15:56 host-dir JobId 5: Using Device "FileStorage" to read.
15-dec 15:56 host-fd JobId 5: Connected to Storage at host:8103 with TLS
15-dec 15:56 host-sd JobId 5: Ready to read from volume "TestVolume001" on File device "FileStorage" (/opt/bacula/archive).
15-dec 15:56 host-sd JobId 5: Forward spacing Volume "TestVolume001" to addr=242
15-dec 15:56 host-sd JobId 5: End of Volume "TestVolume001" at addr=4213600 on device "FileStorage" (/opt/bacula/archive).
15-dec 15:56 host-sd JobId 5: Elapsed time=00:00:01, Transfer rate=110.8 K Bytes/second
15-dec 15:56 host-dir JobId 5: Connected to Storage "File" at host:8103 with TLS
15-dec 15:56 host-dir JobId 5: Using Device "FileStorage" to read.
15-dec 15:56 host-fd JobId 5: Connected to Storage at host:8103 with TLS
15-dec 15:56 host-sd JobId 5: Ready to read from volume "TestVolume001" on File device "FileStorage" (/opt/bacula/archive).
15-dec 15:56 host-sd JobId 5: Forward spacing Volume "TestVolume001" to addr=193778
15-dec 15:56 host-sd JobId 5: Elapsed time=00:00:01, Transfer rate=34.77 K Bytes/second
15-dec 15:56 host-dir JobId 5: Connected to Storage "File" at host:8103 with TLS
15-dec 15:56 host-dir JobId 5: Using Device "FileStorage" to read.
15-dec 15:56 host-fd JobId 5: Connected to Storage at host:8103 with TLS
15-dec 15:56 host-sd JobId 5: Ready to read from volume "TestVolume001" on File device "FileStorage" (/opt/bacula/archive).
15-dec 15:56 host-sd JobId 5: Forward spacing Volume "TestVolume001" to addr=2967749
15-dec 15:56 host-sd JobId 5: Elapsed time=00:00:01, Transfer rate=5.551 K Bytes/second
15-dec 15:56 host-dir JobId 5: Bacula host-dir 18.0.0 (20Nov23):
Build OS:               x86_64-pc-linux-gnu archlinux
JobId:                  5
Job:                    RestoreFiles.2023-12-15_15.56.06_12
Restore Client:         "host-fd" 18.0.0 (20Nov23) x86_64-pc-linux-gnu,archlinux,
Where:                  /tmp/bacula-restores
Replace:                Always
Start time:             15-dec-2023 15:56:09
End time:               15-dec-2023 15:56:12
Elapsed time:           3 secs
Files Expected:         20,130
Files Restored:         20,130
Bytes Restored:         215,586 (215.5 KB)
Rate:                   71.9 KB/s
FD Errors:              0
FD termination status:  OK
SD termination status:  OK
Termination:            Restore OK

[...]

See also

Previous articles:

Go back to: Operations.