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): 5
Defined Clients:
1: acalinux1
2: printserver
3: admlinux1
4: srvweb
5: monitor
6: mail
7: proxy
8: ldap
9: portugues
Select the Client (1-9): 6
Automatically selected FileSet: mail
+-------+-------+----------+----------------+---------------------+------------+-----------+
| JobId | Level | JobFiles | JobBytes | StartTime | VolumeName | StartFile |
+-------+-------+----------+----------------+---------------------+------------+-----------+
| 37 | F | 625,874 | 17,231,550,103 | 2006-07-19 10:54:34 | mail_01 | 0 |
| 45 | I | 1,852 | 948,277,710 | 2006-07-19 13:55:08 | mail_01 | 4 |
| 52 | I | 1,852 | 948,277,710 | 2006-07-19 13:55:21 | mail_01 | 4 |
| 61 | I | 24,807 | 2,377,634,915 | 2006-07-20 13:55:08 | mail_01 | 4 |
| 71 | I | 3,374 | 1,278,765,837 | 2006-07-21 05:00:02 | mail_01 | 5 |
| 83 | I | 12,581 | 2,337,631,593 | 2006-07-22 05:00:03 | mail_01 | 5 |
| 92 | I | 13,863 | 2,588,988,386 | 2006-07-24 05:00:02 | mail_01 | 5 |
| 101 | I | 14,716 | 2,284,733,787 | 2006-07-25 05:00:02 | mail_01 | 6 |
+-------+-------+----------+----------------+---------------------+------------+-----------+
You have selected the following JobIds: 37,45,52,61,71,83,92,101
Building directory tree for JobId 37 ... +++++++++++++++++++++++++++++++++++++++++++++++++
Building directory tree for JobId 45 ...
Building directory tree for JobId 52 ...
Building directory tree for JobId 61 ...
Building directory tree for JobId 71 ... +
Building directory tree for JobId 83 ...
Building directory tree for JobId 92 ...
Building directory tree for JobId 101 ...
8 Jobs, 637,027 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 home
cwd is: /home/
$ cd adm
cwd is: /home/adm/
$ mark alberto
3,287 files marked.
$ done
Bootstrap records written to /var/lib/bacula/rsync2-dir.1.restore.bsr
The job will require the following Volumes:
mail_01
3287 files selected to be restored.
The defined Restore Job resources are:
1: RestoreAcalinux1
2: Restoreprintserver
3: Restoreadmlinux1
4: Restoresrvweb
5: Restoremonitor
6: Restoremail
7: Restoreproxy
8: Restoreportugues
9: Restoreldap
10: RestoreFiles
Select Restore Job (1-10): 6
Run Restore job
JobName: Restoremail
Bootstrap: /var/lib/bacula/rsync2-dir.1.restore.bsr
Where: /home/restore_backups
Replace: always
FileSet: mail
Client: mail
Storage: discoacalinux1
When: 2006-07-25 16:59:49
Catalog: MyCatalog
Priority: 10
OK to run? (yes/mod/no):
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): 2
The defined Storage resources are:
1: discoacalinux1
2: discoprintserver
3: discoadmlinux1
4: discosrvweb
5: discomonitor
6: discomail
7: discoproxy
8: discoportugues
9: discoldap
Select Storage resource (1-9): 6
Run Restore job
JobName: Restoremail
Bootstrap: /var/lib/bacula/rsync2-dir.1.restore.bsr
Where: /home/restore_backups
Replace: always
FileSet: mail
Client: mail
Storage: discomail
When: 2006-07-25 16:59:49
Catalog: MyCatalog
Priority: 10
OK to run? (yes/mod/no): yes
Job started. JobId=112
*
You have messages.
*messages
25-Jul 17:01 rsync2-sd: Restoremail.2006-07-25_17.01.21 Fatal error: acquire.c:109 Read open device "discoacalinux1" (/backup/acalinux1) Volume "mail_01" failed: ERR=dev.c:450 Could not open: /backup/acalinux1/mail_01, ERR=No such file or directory
25-Jul 17:01 rsync2-dir: Restoremail.2006-07-25_17.01.21 Error: Bacula 1.38.11 (28Jun06): 25-Jul-2006 17:01:24
JobId: 112
Job: Restoremail.2006-07-25_17.01.21
Client: mail
Start time: 25-Jul-2006 17:01:23
End time: 25-Jul-2006 17:01:24
Files Expected: 3,287
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: Error
Termination: *** Restore Error ***
25-Jul 17:01 rsync2-dir: Begin pruning Jobs.
25-Jul 17:01 rsync2-dir: No Jobs found to prune.
25-Jul 17:01 rsync2-dir: Begin pruning Files.
25-Jul 17:01 rsync2-dir: No Files found to prune.
25-Jul 17:01 rsync2-dir: End auto prune.