+-------+---------------------+---------------------+------+-------+----------+------------+-----------+
| JobId | Name | StartTime | Type | Level | JobFiles | JobBytes | JobStatus |
+-------+---------------------+---------------------+------+-------+----------+------------+-----------+
| 34 | vsn1leah | 2006-12-20 12:28:03 | B | F | 13 | 13,980,555 | T |
+-------+---------------------+---------------------+------+-------+----------+------------+-----------+
*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): 3
Enter JobId(s), comma separated, to restore: 34
You have selected the following JobId: 34
Building directory tree for JobId 34 ...
1 Job, 12 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: /
$ dir
---------- 0 root root 0 1969-12-31 17:00:00 c:/
$ cd c:/
cwd is: c:/
$ dir
drwxrwxrwx 1 root root 0 2006-12-20 12:18:40 c:/BACKUP123/
$ cd BACKUP123/
cwd is: c:/BACKUP123/
$ dir
-rwxrwxrwx 1 root root 2359350 2006-11-29 15:02:38 c:/BACKUP123/2.bmp
-rwxrwxrwx 1 root root 358902 2006-11-10 14:03:39 c:/BACKUP123/Alex.bmp
-rwxrwxrwx 1 root root 2030754 2006-11-29 14:44:46 c:/BACKUP123/ashlee.bmp
-rwxrwxrwx 1 root root 41353 2006-09-19 15:55:00 c:/BACKUP123/bam-margera-gl3sk.jpg
-rwxrwxrwx 1 root root 27702 2006-11-24 11:51:34 c:/BACKUP123/bammargera.bmp
-rwxrwxrwx 1 root root 58934 2006-11-22 13:23:43 c:/BACKUP123/betty.bmp
-rwxrwxrwx 1 root root 379062 2006-11-20 10:56:09 c:/BACKUP123/biggeralex.bmp
-rwxrwxrwx 1 root root 2359350 2006-12-01 15:52:20 c:/BACKUP123/brit.bmp
-rwxrwxrwx 1 root root 48054 2006-11-24 12:22:16 c:/BACKUP123/britney 2.bmp
-rwxrwxrwx 1 root root 2359350 2006-12-01 15:50:17 c:/BACKUP123/bspears.bmp
-rwxrwxrwx 1 root root 22518 2006-09-21 14:12:28 c:/BACKUP123/c12.jpg
-rwxrwxrwx 1 root root 3932214 2006-11-29 14:59:55 c:/BACKUP123/cameron.bmp
$ help
Command Description
======= ===========
cd change current directory
count count marked files in and below the cd
dir long list current directory, wildcards allowed
done leave file selection mode
estimate estimate restore size
exit same as done command
find find files, wildcards allowed
help print help
ls list current directory, wildcards allowed
lsmark list the marked files in and below the cd
mark mark dir/file to be restored recursively, wildcards allowed
markdir mark directory name to be restored (no files)
pwd print current working directory
unmark unmark dir/file to be restored recursively in dir
unmarkdir unmark directory name only no recursion
quit quit and do not do restore
? print help
$ mark Alex.bmp
1 file marked.
$ done
Bootstrap records written to /var/bacula/vsn1-dir.4.restore.bsr
The job will require the following Volumes:
VSN1Volume
1 file selected to be restored.
The defined Restore Job resources are:
1: vsn1john-fd-restore
2: andy-fd-restore
3: RestoreFiles
4: vsn1leah-fd-restore
Select Restore Job (1-4): 4
Defined Clients:
1: dan-fd
2: vsn1leah-fd
3: argon.vsn1.com
4: vsn1dan-fd
5: vsn1john-fd
6: andy-fd
Select the Client (1-6): 2
Run Restore job
JobName: vsn1leah-fd-restore
Bootstrap: /var/bacula/vsn1-dir.4.restore.bsr
Where: c:/
Replace: always
FileSet: vsn1leah-fileset
Client: vsn1leah-fd
Storage: FileStorage01
When: 2006-12-20 13:27:40
Catalog: VSN1Catalog
Priority: 10
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): 9
Please enter path prefix for restore (/ for none): /
Run Restore job
JobName: vsn1leah-fd-restore
Bootstrap: /var/bacula/vsn1-dir.4.restore.bsr
Where:
Replace: always
FileSet: vsn1leah-fileset
Client: vsn1leah-fd
Storage: FileStorage01
When: 2006-12-20 13:27:40
Catalog: VSN1Catalog
Priority: 10
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): 6
Please enter desired start time as YYYY-MM-DD HH:MM:SS (return for now):
Run Restore job
JobName: vsn1leah-fd-restore
Bootstrap: /var/bacula/vsn1-dir.4.restore.bsr
Where:
Replace: always
FileSet: vsn1leah-fileset
Client: vsn1leah-fd
Storage: FileStorage01
When: 2006-12-20 13:27:56
Catalog: VSN1Catalog
Priority: 10
OK to run? (yes/mod/no): yes
Job started. JobId=38
*
20-Dec 13:28 vsn1-dir: Start Restore Job vsn1leah-fd-restore.2006-12-20_13.27.58
20-Dec 13:28 vsn1-sd: Ready to read from volume "VSN1Volume" on device "FileStorage01" (/baculabackups/).
vsn1leah-fd: -rwxrwxrwx 1 0 0 358902 2006-12-20 12:18:39 c:/BACKUP123/Alex.bmp
20-Dec 13:28 vsn1-dir: Bacula 1.38.11 (28Jun06): 20-Dec-2006 13:28:07
JobId: 38
Job: vsn1leah-fd-restore.2006-12-20_13.27.58
Client: vsn1leah-fd
Start time: 20-Dec-2006 13:28:00
End time: 20-Dec-2006 13:28:07
Files Expected: 1
Files Restored: 1
Bytes Restored: 359,130
Rate: 51.3 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
20-Dec 13:28 vsn1-dir: Begin pruning Jobs.
20-Dec 13:28 vsn1-dir: No Jobs found to prune.
20-Dec 13:28 vsn1-dir: Begin pruning Files.
20-Dec 13:28 vsn1-dir: No Files found to prune.
20-Dec 13:28 vsn1-dir: End auto prune.