URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 67051
[ Назад ]

Исходное сообщение
"Bacula - восстановить файл локально."

Отправлено georgesitov , 20-Июн-06 15:03 
Не подскажете, что указать при восстановлении, чтобы сервер восстанавливал файлы локально, а не на исходный компьютер, на котором они находились ?

Содержание

Сообщения в этом обсуждении
"Bacula - восстановить файл локально."
Отправлено Z0termaNN , 20-Июн-06 15:10 
>Не подскажете, что указать при восстановлении, чтобы сервер восстанавливал файлы локально, а
>не на исходный компьютер, на котором они находились ?

примерно так, можно

# bconsole
Connecting to Director amanda:9101
1000 OK: amanda-dir Version: 1.38.9 (02 May 2006)
Enter a period to cancel a command.
*restore
Using default Catalog name=MyCatalog DB=bacula

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: Cancel
Select item:  (1-12): 5
Defined Clients:
     1: kappa-fd
     2: kpoxa-fd
     3: shepot-fd
     4: ano-fd
     5: dobr-fd
     6: grand-fd
     7: ndc-fd
     8: nmc-fd
     9: ost-fd
    10: scherb-fd
    11: whale3-fd
    12: ultra10-fd
    13: pfs-fd
    14: rea-fd
    15: amanda-fd
    16: forger-fd
    17: io-fd
    18: lists-fd
    19: miracle-fd
    20: moon-fd
    21: netinv-fd
    22: omega-fd
    23: swist-fd
    24: pnts1-fd
    25: pnts2-fd
    26: template-fd
    27: periscope-fd
    28: telex-fd
    29: rtelex-fd
    30: grkc-fd
    31: grand2-fd
    32: zip1-fd
    33: zinger-fd
    34: equant-gw-fd
    35: sovintel-gw-fd
    36: samba-fd
    37: netinv1-fd
    38: psi-fd
    39: recovery-fd
Select the Client (1-39): 3
The defined FileSet resources are:
     1: Alliance
     2: RootFS
Select FileSet resource (1-2): 2
+--------+-------+----------+---------------+---------------------+--------------+-----------+
| JobId  | Level | JobFiles | JobBytes      | StartTime           | VolumeName   | StartFile |
+--------+-------+----------+---------------+---------------------+--------------+-----------+
| 16,638 | F     |  109,436 | 7,968,602,887 | 2006-06-06 05:07:26 | Monthly-0002 |        62 |
| 17,092 | D     |      257 | 3,685,525,143 | 2006-06-17 05:03:47 | Weekly-0001  |       162 |
| 17,137 | I     |      161 | 3,534,184,200 | 2006-06-19 04:22:34 | Daily-0002   |       191 |
| 17,182 | I     |      157 | 3,557,766,357 | 2006-06-20 04:17:18 | Daily-0002   |       248 |
+--------+-------+----------+---------------+---------------------+--------------+-----------+
You have selected the following JobIds: 16638,17092,17137,17182

Building directory tree for JobId 16638 ...  +++++++++++++++++++++++++++++++++++++++++
Building directory tree for JobId 17092 ...
Building directory tree for JobId 17137 ...
Building directory tree for JobId 17182 ...
4 Jobs, 91,010 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: /
$ cd /etc
cwd is: /etc/
$ mark krb5.conf
1 file marked.
$ done
Bootstrap records written to /var/bacula/amanda-dir.5.restore.bsr

The job will require the following Volumes:

   Monthly-0002


1 file selected to be restored.

Run Restore job
JobName:    RestoreFiles
Bootstrap:  /var/bacula/amanda-dir.5.restore.bsr
Where:      /tmp/bacula-restores
Replace:    always
FileSet:    RootFS
Client:     shepot-fd
Storage:    StorEdge9
When:       2006-06-20 15:07:03
Catalog:    MyCatalog
Priority:   8
OK to run? (yes/mod/no): mod
Parameters to modify:
     1: Level
     2: Storage
     3: Job
     4: FileSet
     5: Client
     6: When
     7: Priority
     8: Bootstrap
     9: Where
    10: Replace
    11: JobId
Select parameter to modify (1-11): 5
The defined Client resources are:
     1: amanda-fd
     2: ano-fd
     3: dobr-fd
     4: equant-gw-fd
     5: forger-fd
     6: grand-fd
     7: grand2-fd
     8: grkc-fd
     9: io-fd
    10: kappa-fd
    11: kpoxa-fd
    12: lists-fd
    13: miracle-fd
    14: moon-fd
    15: ndc-fd
    16: netinv-fd
    17: netinv1-fd
    18: nmc-fd
    19: omega-fd
    20: ost-fd
    21: periscope-fd
    22: pfs-fd
    23: pnts1-fd
    24: pnts2-fd
    25: psi-fd
    26: rea-fd
    27: rtelex-fd
    28: samba-fd
    29: scherb-fd
    30: shepot-fd
    31: sovintel-gw-fd
    32: swist-fd
    33: tahk1-fd
    34: tahk2-fd
    35: telex-fd
    36: template-fd
    37: ultra10-fd
    38: whale3-fd
    39: zinger-fd
    40: zip1-fd
    41: recovery-fd
Select Client (File daemon) resource (1-41): 10
Run Restore job
JobName:    RestoreFiles
Bootstrap:  /var/bacula/amanda-dir.5.restore.bsr
Where:      /tmp/bacula-restores
Replace:    always
FileSet:    RootFS
Client:     kappa-fd
Storage:    StorEdge9
When:       2006-06-20 15:07:03
Catalog:    MyCatalog
Priority:   8
OK to run? (yes/mod/no): yes
Job started. JobId=17192
*autodisplay on
20-Jun 15:07 amanda-dir: Start Restore Job RestoreFiles.2006-06-20_15.07.26
*                                                                                        


"Bacula - восстановить файл локально."
Отправлено georgesitov , 20-Июн-06 15:14 
Спасибо!!