Did you look for the file in the temp directory the file was restored to? In your config below the restore process shows the base path where the file was restored. The files will not be restored to the original path unless you change that option when you run the restore, or change the path in your configuration.

Run Restore job
JobName:    RestoreFiles
Bootstrap:  /var/lib/bacula/hpcvsjpg-dir.1.restore.bsr
Where:      */tmp/bacula-restores*



jpg wrote:
Need some guidance on how to restore a single file.

Successfully configured and did a full backup of filesystem
spanning 4 tapes in autochanger.

Renamed a test file from 'ob' to 'ob.orig'. Then requested a
restore of the file 'ob'.

Restore said it completed successfully, however the 'ob' file
was NOT restored.

Help.
-jpg


Screen dump of bacula-console-gnome.
=========================================================================
restore

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    
   |
+-------+-------------+---------------------+----------+----------+----------------+
| 4     | hpcvsjpg-fd | 2006-12-12 18:00:03 | F        | 118      | 72050657    
   |
| 3     | hpcvsjpg-fd | 2006-12-12 07:31:08 | F        | 128292   | 17876337782 
   |
| 1     | hpcvsjpg-fd | 2006-12-11 12:24:08 | F        | 127416   | 17776636886 
   |
+-------+-------------+---------------------+----------+----------+----------------+
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): 7
Automatically selected Client: hpcvsjpg-fd
Enter file names with paths, or < to enter a filename
containing a list of file names with paths, and terminate
them with a blank line.
Enter full filename: /home/jpg/ob9
Enter full filename: Bootstrap records written to /var/lib/bacula/hpcvsjpg-dir.1.restore.bsr

The job will require the following Volumes:
TapeDiff0003


1 file selected to be restored.

Run Restore job
JobName:    RestoreFiles
Bootstrap:  /var/lib/bacula/hpcvsjpg-dir.1.restore.bsr
Where:      /tmp/bacula-restores
Replace:    always
FileSet:    HomeDirs
Client:     hpcvsjpg-fd
Storage:    SureStore12000e
When:       2006-12-13 07:42:43
Catalog:    hpcvsjpgCatalog
Priority:   10
OK to run? (yes/mod/no): yes
Job started. JobId=5
13-Dec 07:42 hpcvsjpg-dir: Start Restore Job RestoreFiles.2006-12-13_07.42.55
13-Dec 07:42 hpcvsjpg-sd: 3301 Issuing autochanger "loaded drive 0" command.
13-Dec 07:42 hpcvsjpg-sd: 3302 Autochanger "loaded drive 0", result is Slot 3.
13-Dec 07:44 hpcvsjpg-sd: Ready to read from volume "TapeDiff0003" on device 
"SureStore12000e" (/dev/nst0).
13-Dec 07:44 hpcvsjpg-sd: Forward spacing to file:block 3:0.
13-Dec 07:46 hpcvsjpg-sd: End of Volume at file 3 on device "SureStore12000e" 
(/dev/nst0), Volume "TapeDiff0003"
13-Dec 07:46 hpcvsjpg-sd: End of all volumes.
13-Dec 07:46 hpcvsjpg-dir: Bacula 1.38.11 (28Jun06): 13-Dec-2006 07:46:17
  JobId:                  5
  Job:                    RestoreFiles.2006-12-13_07.42.55
  Client:                 hpcvsjpg-fd
  Start time:             13-Dec-2006 07:42:57
  End time:               13-Dec-2006 07:46:17
  Files Expected:         1
  Files Restored:         1
  Bytes Restored:         25
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK

13-Dec 07:46 hpcvsjpg-dir: Begin pruning Jobs.
13-Dec 07:46 hpcvsjpg-dir: No Jobs found to prune.
13-Dec 07:46 hpcvsjpg-dir: Begin pruning Files.
13-Dec 07:46 hpcvsjpg-dir: No Files found to prune.
13-Dec 07:46 hpcvsjpg-dir: End auto prune.

=========================================================================

contents of "Bootstrap:  /var/lib/bacula/hpcvsjpg-dir.1.restore.bsr"
=========================================================================
Volume="TapeDiff0003"
MediaType="DDS-2"
VolSessionId=3
VolSessionTime=1165867195
VolFile=3
VolBlock=0-15499
FileIndex=127035
Count=1
=========================================================================

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to