Ubuntu 24.04
Sponsored Link

Bacula : पुनर्स्थापना चलाएँ2024/08/01

 

यह बैकअप डेटा से मूल पुनर्स्थापना ऑपरेशन है।

[1] Bacula कंसोल पर पुनर्स्थापना चलाएँ।
root@dlp:~#
bconsole

Connecting to Director localhost:9101
1000 OK: 10002 dlp.srv.world-dir Version: 13.0.4 (12 February 2024)
Enter a period to cancel a command.

# पुनर्स्थापना कार्य प्रारंभ करें
*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,061 | 2,536,480 | 2024-08-01 00:03:36 | Vol-20240801 |
+-------+-------+----------+-----------+---------------------+--------------+
You have selected the following JobId: 1

Building directory tree for JobId(s) 1 ...  ++++++++++++++++++++++++++++++++++++++++++++
1,857 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: /

# बैकअप डेटा दिखाएं
$ ls
etc/
# वह डेटा चिह्नित करें जिसे आप पुनर्स्थापित करना चाहते हैं
$ mark etc
2,061 files marked.
# चिह्नित फ़ाइल सूची दिखाएं
$ lsmark
.....
.....
  *xml/
    *catalog
    *catalog.old
    *polkitd.xml
    *polkitd.xml.old
    *xml-core.xml
    *xml-core.xml.old
  *zsh_command_not_found

# पुनर्स्थापना सेटिंग समाप्त करें
$ 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-20240801              File1                     FileChgr1

Volumes marked with "*" are in the Autochanger.


2,061 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:            2024-08-01 00:09:38
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*

# पुनर्स्थापना कार्य चलाएँ
OK to run? (yes/mod/no): yes
Job queued. JobId=2

# संदेश दिखाएँ (लॉग)
*messages
01-Aug 00:10 dlp.srv.world-dir JobId 2: Start Restore Job RestoreFiles.2024-08-01_00.10.10_05
01-Aug 00:10 dlp.srv.world-dir JobId 2: Restoring files from JobId(s) 1
01-Aug 00:10 dlp.srv.world-dir JobId 2: Connected to Storage "File1" at dlp.srv.world:9103 with TLS
01-Aug 00:10 dlp.srv.world-dir JobId 2: Using Device "FileChgr1-Dev2" to read.
01-Aug 00:10 dlp.srv.world-dir JobId 2: Connected to Client "dlp.srv.world-fd" at localhost:9102 with TLS
01-Aug 00:10 dlp.srv.world-fd JobId 2: Connected to Storage at dlp.srv.world:9103 with TLS
01-Aug 00:10 dlp.srv.world-sd JobId 2: Ready to read from volume "Vol-20240801" on File device "FileChgr1-Dev2" (/tmp).
01-Aug 00:10 dlp.srv.world-sd JobId 2: Forward spacing Volume "Vol-20240801" to addr=235
01-Aug 00:10 dlp.srv.world-sd JobId 2: End of Volume "Vol-20240801" at addr=2843770 on device "FileChgr1-Dev2" (/tmp).
01-Aug 00:10 dlp.srv.world-sd JobId 2: Elapsed time=00:00:01, Transfer rate=2.795 M Bytes/second
01-Aug 00:10 dlp.srv.world-dir JobId 2: Bacula dlp.srv.world-dir 13.0.4 (12Feb24):
  Build OS:               x86_64-pc-linux-gnu ubuntu 24.04
  JobId:                  2
  Job:                    RestoreFiles.2024-08-01_00.10.10_05
  Restore Client:         "dlp.srv.world-fd" 13.0.4 (12Feb24) x86_64-pc-linux-gnu,ubuntu,24.04
  Where:                  /tmp
  Replace:                Always
  Start time:             01-Aug-2024 00:10:12
  End time:               01-Aug-2024 00:10:13
  Elapsed time:           1 sec
  Files Expected:         2,061
  Files Restored:         2,061
  Bytes Restored:         2,536,480 (2.536 MB)
  Rate:                   2536.5 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK

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

*exit

root@dlp:~#
ll /tmp/etc

total 1000
drwxr-xr-x 116 root     root       4096 Jul 31 23:39 ./
drwxrwxrwt  13 root     root       4096 Aug  1 00:10 ../
-rw-------   1 root     root          0 Apr 23 09:37 .pwd.lock
-rw-r--r--   1 root     root        648 Apr 23 09:40 .resolv.conf.systemd-resolved.bak
-rw-r--r--   1 root     root        208 Apr 23 09:37 .updated
drwxr-xr-x   4 root     root       4096 Apr 23 09:45 ModemManager/
drwxr-xr-x   2 root     root       4096 Apr 23 09:40 PackageKit/
drwxr-xr-x   2 root     root       4096 Apr 26 01:07 UPower/
drwxr-xr-x   4 root     root       4096 Apr 23 09:40 X11/
-rw-r--r--   1 root     root       3444 Jul  5  2023 adduser.conf
.....
.....
# बैकअप डेटा बहाल
मिलान सामग्री