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): 3
Enter JobId(s), comma separated, to restore: 3
You have selected the following JobId: 3
Building directory tree for JobId 3 ... ++++++++++++++++++++++++++++++++++++++++++++++
1 Job, 277 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 home500z
Invalid path given.
cwd is: /
$ cd home
cwd is: /home/
$ dir
---------- 0 root root 0 1969-12-31 18:00:00 /home/groups/
---------- 0 root root 0 1969-12-31 18:00:00 /home/users/
$ cd groups
cwd is: /home/groups/
$ cd sistemas
cwd is: /home/groups/sistemas/
$ mark pcsip.xls
1 file marked.
$ count
282 total files/dirs. 1 marked to be restored.
$ exit
Bootstrap records written to /var/lib/bacula/backup-dir.restore.2.bsr
The job will require the following
Volume(s) Storage(s) SD Device(s)
===========================================================================
Default-0013 File FileStorage
1 file selected to be restored.
Automatically selected Client: backup-fd
Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bacula/backup-dir.restore.2.bsr
Where: /tmp/bacula-restores
Replace: always
FileSet: Full Set
Backup Client: backup-fd
Restore Client: backup-fd
Storage: File
When: 2007-11-09 08:11:06
Catalog: MyCatalog
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=8
*list jobs
+-------+---------------+---------------------+------+-------+----------+-----------------+-----------+
| JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus |
+-------+---------------+---------------------+------+-------+----------+-----------------+-----------+
| 1 | BackupCatalog | 2007-11-09 02:11:54 | B | F | 0 | 0 | T |
| 2 | Client1 | 2007-11-09 02:12:00 | B | F | 116,082 | 130,305,048,647 | T |
| 3 | Client1 | 2007-11-09 07:13:44 | B | I | 282 | 184,908,490 | T |
| 4 | BackupCatalog | 2007-11-09 07:15:56 | B | F | 0 | 0 | T |
| 5 | RestoreFiles | 2007-11-09 07:50:35 | R | F | 1 | 190,976 | T |
| 6 | RestoreFiles | 2007-11-09 07:52:19 | R | F | 1 | 190,976 | T |
| 7 | RestoreFiles | 2007-11-09 08:01:34 | R | F | 1 | 1,160 | T |
| 8 | RestoreFiles | 2007-11-09 08:11:13 | R | F | 1 | 190,976 | T |
+-------+---------------+---------------------+------+-------+----------+-----------------+-----------+
*exit
backup:/backupa# find / -name pcsip.xls
backup:/backupa# ls -la /tmp/bacula-restores/
total 8
drwxrwxrwx 2 root root 4096 2007-11-09 07:51 .
drwxrwxrwx 5 root root 4096 2007-11-09 08:11 ..
backup:/backupa#