Ubuntu 26.04

Bacula : Run Restore2026/07/07

 

This is basic Restore Operation from backup data.

[1] Run Restore on Bacula console.
root@dlp:~#
bconsole

Connecting to Director localhost:9101
1000 OK: 10002 dlp.srv.world-dir Version: 15.0.3 (25 March 2025)
Enter a period to cancel a command.

# start restore task
*restore
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
     1: List last 20 Jobs run
     2: List Jobs where a given File is saved
     3: Enter list of comma separated JobIds to select
     4: Enter SQL list command
     5: Select the most recent backup for a client
     6: Select backup for a client before a specified time
     7: Enter a list of files to restore
     8: Enter a list of files to restore before a specified time
     9: Find the JobIds of the most recent backup for a client
    10: Find the JobIds for a backup for a client before a specified time
    11: Enter a list of directories to restore for found JobIds
    12: Select full restore to a specified Job date
    13: Select object to restore
    14: Cancel

Select item:  (1-14): 5
Automatically selected Client: dlp.srv.world-fd
Automatically selected FileSet: Full Set
+-------+-------+----------+-----------+---------------------+--------------+
| jobid | level | jobfiles | jobbytes  | starttime           | volumename   |
+-------+-------+----------+-----------+---------------------+--------------+
|     1 | F     |    2,043 | 2,534,837 | 2026-07-07 00:56:27 | Vol-20260707 |
+-------+-------+----------+-----------+---------------------+--------------+
You have selected the following JobId: 1

Building directory tree for JobId(s) 1 ...  ++++++++++++++++++++++++++++++++++++++++++++
1,825 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /

# show backup data
$ ls
etc/
# mark data you'd like to restore
$ mark etc
2,043 files marked.
# show marked file list
$ lsmark
.....
.....
    *systemd/
      *user
    *user-dirs.conf
    *user-dirs.defaults
  *xml/
    *catalog
    *catalog.old
    *polkitd.xml
    *polkitd.xml.old
    *xml-core.xml
    *xml-core.xml.old
  *zsh_command_not_found

# finish restore setting
$ done
Bootstrap records written to /var/lib/bacula/dlp.srv.world-dir.restore.1.bsr

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

    Vol-20260707              File1                     FileChgr1

Volumes marked with "*" are in the Autochanger.


2,043 files selected to be restored.

Using Catalog "MyCatalog"
Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/lib/bacula/dlp.srv.world-dir.restore.1.bsr
Where:           /tmp
Replace:         Always
FileSet:         Full Set
Backup Client:   dlp.srv.world-fd
Restore Client:  dlp.srv.world-fd
Storage:         File1
When:            2026-07-07 01:00:16
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*

# run restore job
OK to run? (yes/mod/no): yes
Job queued. JobId=2

# show messages (log)
*messages
07-Jul 01:00 dlp.srv.world-dir JobId 2: Start Restore Job RestoreFiles.2026-07-07_01.00.21_05
07-Jul 01:00 dlp.srv.world-dir JobId 2: Restoring files from JobId(s) 1
07-Jul 01:00 dlp.srv.world-dir JobId 2: Connected to Storage "File1" at dlp.srv.world:9103 with TLS
07-Jul 01:00 dlp.srv.world-dir JobId 2: Using Device "FileChgr1-Dev2" to read.
07-Jul 01:00 dlp.srv.world-dir JobId 2: Connected to Client "dlp.srv.world-fd" at localhost:9102 with TLS
07-Jul 01:00 dlp.srv.world-fd JobId 2: Connected to Storage at dlp.srv.world:9103 with TLS
07-Jul 01:00 dlp.srv.world-sd JobId 2: Ready to read from volume "Vol-20260707" on File device "FileChgr1-Dev2" (/tmp).
07-Jul 01:00 dlp.srv.world-sd JobId 2: Forward spacing Volume "Vol-20260707" to addr=252
07-Jul 01:00 dlp.srv.world-sd JobId 2: End of Volume "Vol-20260707" at addr=2837435 on device "FileChgr1-Dev2" (/tmp).
07-Jul 01:00 dlp.srv.world-sd JobId 2: Elapsed time=00:00:01, Transfer rate=2.787 M Bytes/second
07-Jul 01:00 dlp.srv.world-dir JobId 2: Bacula dlp.srv.world-dir 15.0.3 (25Mar25):
  Build OS:               x86_64-pc-linux-gnu ubuntu 26.04
  JobId:                  2
  Job:                    RestoreFiles.2026-07-07_01.00.21_05
  Restore Client:         "dlp.srv.world-fd" 15.0.3 (25Mar25) x86_64-pc-linux-gnu,ubuntu,26.04
  Where:                  /tmp
  Replace:                Always
  Start time:             07-Jul-2026 01:00:23
  End time:               07-Jul-2026 01:00:23
  Elapsed time:           1 sec
  Files Expected:         2,043
  Files Restored:         2,043
  Bytes Restored:         2,534,837 (2.534 MB)
  Rate:                   2534.8 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK

07-Jul 01:00 dlp.srv.world-dir JobId 2: Begin pruning Jobs older than 6 months .
07-Jul 01:00 dlp.srv.world-dir JobId 2: No Jobs found to prune.
07-Jul 01:00 dlp.srv.world-dir JobId 2: Begin pruning Files.
07-Jul 01:00 dlp.srv.world-dir JobId 2: No Files found to prune.
07-Jul 01:00 dlp.srv.world-dir JobId 2: End auto prune.

*exit

root@dlp:~#
ll /tmp/etc

total 524
drwxr-xr-x 117 root     root       4260 Jul  7 00:45 ./
drwxrwxrwt  11 root     root        240 Jul  7 01:05 ../
-rw-------   1 root     root          0 Apr 20 18:05 .pwd.lock
-rw-r--r--   1 root     root        862 Apr 20 18:06 .resolv.conf.systemd-resolved.bak
-rw-r--r--   1 root     root        255 Apr 20 18:05 .updated
drwxr-xr-x   5 root     root        100 Apr 20 18:22 ModemManager/
drwxr-xr-x   2 root     root         80 Jul  4 14:26 PackageKit/
drwxr-xr-x   3 root     root         80 Apr 20 18:07 UPower/
drwxr-xr-x   4 root     root         80 Apr 20 18:06 X11/
-rw-r--r--   1 root     root       4027 Nov  4  2025 adduser.conf
-rw-r--r--   1 root     root         51 Jul  7 00:44 aliases
-rw-r--r--   1 root     root      12288 Jul  7 00:44 aliases.db
drwxr-xr-x   2 root     root       6900 Jul  7 00:44 alternatives/
drwxr-xr-x   2 root     root         60 Apr 20 18:07 apparmor/
.....
.....
# backup data restored
Matched Content