-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rick Knight wrote: > Dan Langille wrote: > Rick Knight wrote: > >>>> John Drescher wrote: >>>> >>>>> On Mon, Apr 6, 2009 at 12:08 PM, Rick Knight >>>>> <rick_kni...@rlknight.com> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> Sorry for the repost, but I really need some help with this. >>>>>> >>>>>> My system suffered a hard drive crash last month and now I'm trying to >>>>>> restore from a backup that was running when the drive died. I've >>>>>> re-installed my system on a new had drive and installed MySQL and >>>>>> Bacula >>>>>> (from Kubuntu repsitories) and modified Bacula to use my DDS-4 drive. >>>>>> I've run bscan and I think it was successful, here's the output of the >>>>>> command... >>>>>> >>>>>> r...@rick-desktop:~# bscan -s -m -c bacula-sd.conf -v -V rick_temp-01 >>>>>> /dev/nst0 -PSaveIt >>>>>> bscan: butil.c:282 Using device: "/dev/nst0" for reading. >>>>>> 04-Apr 19:17 bscan JobId 0: Ready to read from volume >>>>>> "rick_temp-01" on >>>>>> device "DDS-4" (/dev/nst0). >>>>>> bscan: bscan.c:293 Using Database: bacula, User: bacula >>>>>> bscan: bscan.c:436 Pool record for Scratch found in DB. >>>>>> bscan: bscan.c:450 Pool type "Backup" is OK. >>>>>> bscan: bscan.c:921 Created Media record for Volume: rick_temp-01 >>>>>> bscan: bscan.c:478 Media type "DDS-4" is OK. >>>>>> bscan: bscan.c:488 VOL_LABEL: OK for Volume: rick_temp-01 >>>>>> bscan: bscan.c:992 Created Client record for Client: rick-fd >>>>>> bscan: bscan.c:1075 Created new JobId=1 record for original JobId=1976 >>>>>> 04-Apr 19:24 bscan JobId 0: End of file 1 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> bscan: bscan.c:688 32,768 file records. At file:blk=1:16,067 >>>>>> bytes=1,035,886,662 >>>>>> 04-Apr 19:31 bscan JobId 0: End of file 2 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 19:39 bscan JobId 0: End of file 3 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 19:46 bscan JobId 0: End of file 4 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 19:53 bscan JobId 0: End of file 5 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 20:00 bscan JobId 0: End of file 6 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 20:07 bscan JobId 0: End of file 7 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 20:14 bscan JobId 0: End of file 8 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 20:21 bscan JobId 0: End of file 9 on device "DDS-4" >>>>>> (/dev/nst0), >>>>>> Volume "rick_temp-01" >>>>>> 04-Apr 20:28 bscan JobId 0: End of file 10 on device "DDS-4" >>>>>> (/dev/nst0), Volume "rick_temp-01" >>>>>> 04-Apr 20:36 bscan JobId 0: End of file 11 on device "DDS-4" >>>>>> (/dev/nst0), Volume "rick_temp-01" >>>>>> bscan: bscan.c:1018 Created FileSet record "Rick Home" >>>>>> bscan: bscan.c:1130 Updated Job termination record for JobId=1 >>>>>> Level=Full TermStat=T >>>>>> bscan: bscan.c:1219 Created JobMedia record JobId 1, MediaId 1 >>>>>> 04-Apr 20:40 bscan JobId 0: Error: block.c:995 Read error on fd=3 at >>>>>> file:blk 11:9518 on device "DDS-4" (/dev/nst0). ERR=Input/output >>>>>> error. >>>>>> Bacula status: file=11 block=9518 >>>>>> Device status: ONLINE IM_REP_EN file=11 block=-1 >>>>>> Records added or updated in the catalog: >>>>>> 1 Media >>>>>> 1 Pool >>>>>> 1 Job >>>>>> 57763 File >>>>>> >>>>>> Now I'm trying to restore. Using these restore settings... >>>>>> >>>>>> Select Storage resource (1-2): 2 >>>>>> Run Restore job >>>>>> JobName: RestoreFiles >>>>>> Bootstrap: *None* >>>>>> Where: /bacula-restores >>>>>> Replace: always >>>>>> Client: rick-desktop-fd >>>>>> Storage: DDS-4 >>>>>> JobId: 1002 >>>>>> When: 2009-04-05 08:57:40 >>>>>> Catalog: MyCatalog >>>>>> Priority: 10 >>>>>> OK to run? (yes/mod/no): mod >>>>>> >>>>>> >>>>> Did you mark any files to restore? >>>>> >>>>> >>>>> John >>>>> >>>> John, >>>> >>>> Thank you for your reply. No, I did not mark any files for restore. I >>>> want everything on the tape restored to /bacula-restores. In a case >>>> like this, where do I mark the files to restore? >>>> > > You should be getting a prompt for marking files. See "mark *" below. > > Select the Client (1-26): 11 > The defined FileSet resources are: > 1: Full Set > 2: basic backup > 3: bast files > 4: bast home > Select FileSet resource (1-4): 4 > +--------+-------+----------+-------------+---------------------+----------------+ > > | jobid | level | jobfiles | jobbytes | starttime | > volumename | > +--------+-------+----------+-------------+---------------------+----------------+ > > | 26,295 | F | 17,722 | 459,708,116 | 2009-04-05 07:43:19 | > DLT7000-JYN234 | > | 26,315 | I | 0 | 0 | 2009-04-06 05:59:21 | > DLT7000-JYN236 | > +--------+-------+----------+-------------+---------------------+----------------+ > > You have selected the following JobIds: 26295,26315 > > Building directory tree for JobId 26295 ... > +++++++++++++++++++++++++++++++++++++++++++++ > Building directory tree for JobId 26315 ... > 2 Jobs, 15,987 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: / > $ mark * > 17,722 files marked. > $ done > Bootstrap records written to > /home/bacula/working/bacula-dir.restore.3.bsr > > The job will require the following > Volume(s) Storage(s) SD Device(s) > =========================================================================== > > > DLT7000-JYN234 DLT DLT > > > 17,722 files selected to be restored. > > Run Restore job > JobName: RestoreFiles > Bootstrap: /home/bacula/working/bacula-dir.restore.3.bsr > Where: /tmp/bacula-restores > Replace: always > FileSet: Full Set > Backup Client: bast-fd > Restore Client: bast-fd > Storage: DLT > When: 2009-04-06 18:33:22 > Catalog: MyCatalog > Priority: 10 > OK to run? (yes/mod/no): > > >
> Dan, > Thank you for your reply. I am not getting a prompt for selecting or > marking files. From bconsole I enter run and then choose 3 for restore > files. I modify for source and then enetr yes to run the restore job. At > no point am I getting a prompt to mark files. Don't do run. Do restore. $ bconsole Connecting to Director bacula.unixathome.org:9101 1000 OK: bacula-dir Version: 2.4.4 (28 December 2008) 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): - -- Dan Langille BSDCan - The Technical BSD Conference : http://www.bsdcan.org/ PGCon - The PostgreSQL Conference: http://www.pgcon.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknaSUgACgkQCgsXFM/7nTx59gCcDAcipEK82V9muRPdM0DJ+KWe MYQAoIOGBd/YSW7zoaa7LowwwAbzWcM+ =TrnA -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users