All pastes #908985 Raw Edit

Something

public text v1 · immutable
·published 2008-02-18 21:00 UTC
rendered paste body
[root@client:~] bconsole
Connecting to Director 127.0.0.1:9101
1000 OK: bacula-dir Version: 2.2.7 (24 December 2007)
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: Cancel
Select item:  (1-12): 1
+-------+-----------+---------------------+----------+----------+-------------+
| jobid | client    | starttime           | joblevel | jobfiles | jobbytes    |
+-------+-----------+---------------------+----------+----------+-------------+
| 16    | bacula-fd | 2008-02-18 15:16:03 | I        | 2        | 0           |
| 15    | bacula-fd | 2008-02-18 12:02:22 | F        | 1064     | 602904246   |
| 14    | bacula-fd | 2008-02-18 12:00:43 | I        | 1        | 0           |
| 12    | bacula-fd | 2008-02-18 11:51:43 | I        | 0        | 0           |
| 10    | bacula-fd | 2008-02-18 11:51:40 | D        | 2        | 0           |
| 8     | bacula-fd | 2008-02-16 02:05:03 | I        | 2        | 0           |
| 7     | bacula-fd | 2008-02-15 09:59:21 | F        | 1064     | 602904246   |
+-------+-----------+---------------------+----------+----------+-------------+
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): 11
Enter JobId(s), comma separated, to restore: 8
Automatically selected Client: bacula-fd
Enter full directory names or start the name
with a < to indicate it is a filename containing a list
of directories and terminate them with a blank line.
Enter directory name: /mnt/fileserver/client/Internal/Email
Enter directory name: 
Bootstrap records written to /var/spool/bacula/bacula-dir.restore.2.bsr

The job will require the following
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
   
   inc-0002                  File                      FileStorage              


1 file selected to be restored.

Run Restore job
JobName:         RestoreFiles
Bootstrap:       /var/spool/bacula/bacula-dir.restore.2.bsr
Where:           /tmp/bacula-restores
Replace:         always
FileSet:         Full Set
Backup Client:   bacula-fd
Restore Client:  bacula-fd
Storage:         File
When:            2008-02-18 15:59:46
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no): yes
Job queued. JobId=18