Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-08 Thread Bruno Friedmann
John Drescher wrote:
 John,

 The out put of netstat -a -n | grep 9103 ...

 tcp0  0 127.0.0.1:9103  0.0.0.0:*   LISTEN

 Now how do I correct this?

 
 Edit bacula-sd.conf and put the real ip address in SDAddress instead
 of 127.0.0.1 or localhost.
 
 John
 
 --
 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

One time again : debian like package paranoid settings :-)))

I've made a dream, one day this guys would understand that a NETWORK backup 
service should listen some network interfaces.

Did they restrict also apache or lighttpd to listen only localhost ???



-- 

 Bruno Friedmann


--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-08 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick Knight wrote:
 Dan Langille wrote:
 John Drescher wrote:
  
 John,

 The out put of netstat -a -n | grep 9103 ...

 tcp0  0 127.0.0.1:9103  0.0.0.0:*  
 LISTEN

 Now how do I correct this?

   
 Edit bacula-sd.conf and put the real ip address in SDAddress instead
 of 127.0.0.1 or localhost.
 
 
 Work for someone: contact the downstream packager and see whether or not
  appropriate instructions are being provided to their users that these
 values must be updated to suit their situation.
 
 If it is documented, they aren't reading them.
 
 The number of support requests regarding this particular problem
 (localhost) seems to have increased significantly lately.
 
 This is not directed at the OP.
 

 Now that I have this working, even though incorrectly, I want to use
 bscan to scan the rest of my media. I know at least one of my tapes has
 my previous Bacula settings and I want to reuse those. Problem is, some
 of the labels I wrote on the tapes do not match the actual tape label as
 bacula and bscan see it. Is there a way to have bscan or bacula report
 the volume name so that I can scan the volume? When I run bscan without
 a volume name it complains about no volume name, if I use an incorrect
 volume name it times out waiting for a volume that is not inserted.

Rick: please remember to CC the list too on these emails.  That way, if
I'm busy, someone else can help.  Plus, you have the added security of
knowing that when things are public, you are much less likely to receive
 malicious advice.

That said, sorry, I can't help just now.

- --
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

iEYEARECAAYFAknc5rAACgkQCgsXFM/7nTx1NQCffwsTS/10Wh9KmD8eesnu4cq5
kAMAoPsfg6aA2C1LBtlwef8YvhwcHQ56
=GPKM
-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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-08 Thread Rick Knight
Dan Langille wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rick Knight wrote:
   
 Dan Langille wrote:
 John Drescher wrote:
  
 
 John,

 The out put of netstat -a -n | grep 9103 ...

 tcp0  0 127.0.0.1:9103  0.0.0.0:*  
 LISTEN

 Now how do I correct this?

   
 
 Edit bacula-sd.conf and put the real ip address in SDAddress instead
 of 127.0.0.1 or localhost.
 
   
 Work for someone: contact the downstream packager and see whether or not
  appropriate instructions are being provided to their users that these
 values must be updated to suit their situation.

 If it is documented, they aren't reading them.

 The number of support requests regarding this particular problem
 (localhost) seems to have increased significantly lately.

 This is not directed at the OP.

 

   
 Now that I have this working, even though incorrectly, I want to use
 bscan to scan the rest of my media. I know at least one of my tapes has
 my previous Bacula settings and I want to reuse those. Problem is, some
 of the labels I wrote on the tapes do not match the actual tape label as
 bacula and bscan see it. Is there a way to have bscan or bacula report
 the volume name so that I can scan the volume? When I run bscan without
 a volume name it complains about no volume name, if I use an incorrect
 volume name it times out waiting for a volume that is not inserted.
 

 Rick: please remember to CC the list too on these emails.  That way, if
 I'm busy, someone else can help.  Plus, you have the added security of
 knowing that when things are public, you are much less likely to receive
  malicious advice.

 That said, sorry, I can't help just now.

 - --
 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

 iEYEARECAAYFAknc5rAACgkQCgsXFM/7nTx1NQCffwsTS/10Wh9KmD8eesnu4cq5
 kAMAoPsfg6aA2C1LBtlwef8YvhwcHQ56
 =GPKM
 -END PGP SIGNATURE-
   
Now that I have this working, even though incorrectly, I want to use 
bscan to scan the rest of my media. I know at least one of my tapes has 
my previous Bacula settings and I want to reuse those. Problem is, some 
of the labels I wrote on the tapes do not match the actual tape label as 
bacula and bscan see it. Is there a way to have bscan or bacula report 
the volume name so that I can scan the volume? When I run bscan without 
a volume name it complains about no volume name, if I use an incorrect 
volume name it times out waiting for a volume that is not inserted.

Thanks again,
Rick

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-08 Thread John Drescher
 I was finally able to get things to work by changing Address from my
 machine name, rick-desktop, to the localhost address 127.0.0.1 in the
 bacula config files.

Hmm. The correct fix is to remove 127.0.0.1 and localhost from all
bacula files and put the external ipaddress in it if you plan on
backing up more than 1 machine ever. Otherwise you can keep bacula
locked down as a single system network backup program.

 Clearly this is not the way it should work. Is it
 just a matter of the Debian/Kubuntu packager being too paranoid?

Yes, they effectively make bacula a single machine backup program
(with the exception of the ssh tunneling backups). However they do the
same with apache which is just as nuts. I mean install an Apache web
server that only the local host can access, I am sure there are good
reasons for this however 99% of users will have to change the
default..

John

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-07 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick Knight wrote:
 Dan Langille wrote:
  snipped
   
 
 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-
   
 Dan,
 
 I'm getting closer. When I use restore and select the JobID I get the
 file selection menu and I'm able to select all the files, but when I
 start the restore I get this...
 
 06-Apr 20:37 rick-desktop-dir JobId 11: Start Restore Job
 RestoreFiles.2009-04-06_20.37.04
 06-Apr 20:38 rick-desktop-dir JobId 11: Warning: bsock.c:123 Could not
 connect to Storage daemon on 172.16.88.232:9103. ERR=Connection refused
 
 The director, file daemon and storage daemon are all on the same PC and
 I've modified the config files to show the name of this PC in Address.
 What els should I look for?

I am replying to the list so that someone else can help.  I'm busy at
the moment.


- --
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

iEYEARECAAYFAknbX0wACgkQCgsXFM/7nTwv3ACg44EtbGtX3wMMEJDG6T5solXH
K/EAoOBAD4PUHRTS+ryqfissU05nCMe/
=GfgY
-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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-07 Thread John Drescher
On Tue, Apr 7, 2009 at 10:12 AM, Dan Langille d...@langille.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rick Knight wrote:
 Dan Langille wrote:
  snipped


 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-

 Dan,

 I'm getting closer. When I use restore and select the JobID I get the
 file selection menu and I'm able to select all the files, but when I
 start the restore I get this...

 06-Apr 20:37 rick-desktop-dir JobId 11: Start Restore Job
 RestoreFiles.2009-04-06_20.37.04
 06-Apr 20:38 rick-desktop-dir JobId 11: Warning: bsock.c:123 Could not
 connect to Storage daemon on 172.16.88.232:9103. ERR=Connection refused

 The director, file daemon and storage daemon are all on the same PC and
 I've modified the config files to show the name of this PC in Address.
 What els should I look for?

Are you sure bacula-sd is currently running?

# ps -ef | grep bacula


John

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-07 Thread John Drescher
 Are you sure bacula-sd is currently running?

 # ps -ef | grep bacula


 John


 John,

 Yes, bacula-sd, bacula-fd and bacula-director are all running as user
 bacula.


Okay, what is the output of

netstat -a -n | grep 9103

John

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-07 Thread John Drescher
 Okay, what is the output of

 netstat -a -n | grep 9103

 John


 OK John, I'll try that tonight and report back here.


My suspicion is that your bacula-sd is listening only on 127.0.0.1 or
localhost and bacula is trying to connect on 172.16.88.232

These are seen as totally different networks so no connection will be made.

John

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-07 Thread John Drescher
 John,

 The out put of netstat -a -n | grep 9103 ...

 tcp        0      0 127.0.0.1:9103          0.0.0.0:*               LISTEN

 Now how do I correct this?


Edit bacula-sd.conf and put the real ip address in SDAddress instead
of 127.0.0.1 or localhost.

John

--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-06 Thread John Drescher
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

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-06 Thread Rick Knight
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?

Thanks,
Rick


--
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


Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-06 Thread Dan Langille
-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
 

Re: [Bacula-users] I really need some help with bscan and trying to restore (repost)

2009-04-06 Thread Dan Langille
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

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