• 구름조금동두천 6.1℃
  • 구름조금강릉 6.7℃
  • 맑음서울 6.7℃
  • 대전 5.2℃
  • 구름조금대구 9.1℃
  • 맑음울산 8.5℃
  • 연무광주 8.2℃
  • 맑음부산 9.9℃
  • 맑음고창 7.7℃
  • 연무제주 9.2℃
  • 맑음강화 4.9℃
  • 구름많음보은 3.9℃
  • 구름많음금산 5.6℃
  • 구름조금강진군 8.6℃
  • 맑음경주시 9.4℃
  • 맑음거제 7.9℃
기상청 제공

bacula restore. 바큐라 백업 복원

bacula restore. 바큐라 백업 복원

root@backup01:/home/bacula-5.0.3/sbin# ./bconsole

Connecting to Director backup01:9101

1000 OK: backup01-dir Version: 5.0.3 (04 August 2010)

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: Cancel

Select item:  (1-13): 5

Defined Clients:

    1: backup01-fd

    2: 111.111.111.111

    3: 222.222.222.222

    4: 333.333.333.333

 

Select the Client (1-40): 3

Automatically selected FileSet: 333.333.333.333-fs

+--------+-------+----------+----------------+---------------------+---------------------+

| JobId | Level | JobFiles | JobBytes       | StartTime           | VolumeName          |

+--------+-------+----------+----------------+---------------------+---------------------+

| 21,185 | F     |   96,081 | 25,435,381,213 | 2014-01-05 10:09:19 | 333.333.333.333 |

| 21,211 | I     |     156 |  9,788,496,667 | 2014-01-06 01:27:05 | 333.333.333.333 |

| 21,237 | I     |     333 |  9,790,944,417 | 2014-01-07 02:01:41 | 333.333.333.333 |

+--------+-------+----------+----------------+---------------------+---------------------+

You have selected the following JobIds: 21185,21211,21237

 

Building directory tree for JobId(s) 21185,21211,21237 ... +++++++++++++++++++++++++++++++++++++++++++++++++

95,374 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

home/

opt/

cd home

cwd is: /home/

ls

cubrid822/

temp/

mark temp

33 files marked.

done

Bootstrap records written to /home/bacula-5.0.3/var/bacula/working/backup01-dir.restore.2.bsr

 

The job will require the following

  Volume(s)                 Storage(s)                SD Device(s)

.......................

.......................

09-Jan 14:03 backup01-dir JobId 21301: Begin pruning Jobs.

09-Jan 14:03 backup01-dir JobId 21301: No Files found to prune.

09-Jan 14:03 backup01-dir JobId 21301: End auto prune.