Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-02 Thread Rich
On 2007.10.01. 21:41, Arno Lehmann wrote:
...
>>  When I finish the 
>> restore, no files are restored, except the 
>> etc/sysconfig/networking/profiles/default directory structure.  Now, on 
>> the real filesystem, there is a hosts file in that directory, as well as 
>> /etc/hosts.  But they are not symlinked.
> 
> ... the two files are not symlinked but hard links to only one set of 
> data.
> 
>>  It seems like Bacula is 
>> getting confused about which hosts file I actually want restored.  It 
>> happens if I set the restore client to the same machine, or a different 
>> one.
> 
> I think that, in case these files are hard links, Bacula should 
> restore the one you explicitly selected, i.e. /etc/hosts. What it 
> should do the other hard links is something *I* wouldn't want to decide...

so the files were hardlinked. but, from reading the above, it seems that 
_none_ of the files was actually restored...

reading the manual, i would expect even with hardlinks=no one file to be 
restored, and only the correct one :)

also, the manual could be a bit more clear. it says :
"In such a case, set hardlinks=no and hard links will not be backed up. 
Note, using this option will most likely backup more data and on a 
restore the file system will not be restored identically to the original."

i think last sentence refers to 'hardlinks=no' setting, but at first i 
thought it was referring to '=yes' :)

as for what to do - i would expect all hardlinked files to be restored. 
if not, the system would not be restored as it was. also, what happens 
if you restore one hardlinked file (and others are not restored) - it 
has to be unlinked (and should only happen if hardlinks=no is explicitly 
set)

> Arno
> 
>> Perhaps this is just my inexperience with the software, but can someone 
>> offer a suggestion as to what the problem might be?  Maybe someone else 
>> can confirm this happens with them?  Thanks
>>
>> Jason
...
-- 
  Rich

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
Yes, I saw this a few minutes ago.  Setting hardlinks = yes in my fileset
would fix this.  I'm debating what to do about this. It might be that for
/etc I don't need to worry about it.

Jason

On 10/1/07, Ryan Novosielski <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I don't know if you've checked this in the manual, but there is
> something that refers to behavior when encountering hard links in there.
>
> =R
>
> jay wrote:
> > I don't have a problem doing this here.  But if I am restoring 20,000
> > files and some of those are hard linked, which I might or might not know
> > about, then it might be an issue.  I think some type of warning would've
> > been really nice in the restore email.  Maybe?
> >
> > Jason
> >
> > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > > wrote:
> >
> > Hi,
> >
> > 01.10.2007 20:57,, jay wrote::
> > > Thanks Chris and Arno,
> > >
> > > The files are indeed hard linked
> > >
> > > [EMAIL PROTECTED] ~]# stat /etc/hosts
> > >   File: `/etc/hosts'
> > >   Size: 591 Blocks: 16 IO Block: 4096
> > regular file
> > > Device: 802h/2050d  Inode: 33011   Links: 2
> > > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> > (0/root)
> > > Access: 2007-10-01 13:52:26.0 -0500
> > > Modify: 2007-07-30 09:49: 55.0 -0500
> > > Change: 2007-07-30 09:49:55.0 -0500
> > >
> > > [EMAIL PROTECTED] ~]# stat
> > /etc/sysconfig/networking/profiles/default/hosts
> > >   File: `/etc/sysconfig/networking/profiles/default/hosts'
> > >   Size: 591 Blocks: 16 IO Block: 4096
> > regular file
> > > Device: 802h/2050d  Inode: 33011   Links: 2
> > > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> > (0/root)
> > > Access: 2007-10-01 13:52:26.0 -0500
> > > Modify: 2007-07-30 09:49:55.0 -0500
> > > Change: 2007-07-30 09:49:55.0 -0500
> > > [EMAIL PROTECTED] ~]#
> > >
> > > Now that we have established that, is there a way to restore that
> > file
> > > with Bacula?  Or does Bacula not handle hard links?
> >
> > But didn't you just lear that Bacula handles hard links? ;-)
> >
> > Admittedly, it might handle them differently... for now, I'd suggest
> > to simple rm /etc/hosts and link it to the restored copy again.
> >
> > Arno
> >
> > > Thanks for the quick responses
> > >
> > > Jason
> > >
> > >
> > > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > 
> > > mailto:[EMAIL PROTECTED]>>> wrote:
> > >
> > > Hi,
> > >
> > > 01.10.2007 20:05,, jay wrote::
> > >  > Hello,
> > >  >
> > >  > I'm having a weird problem trying to restore /etc/hosts on
> a
> > > RHEL4 box.
> > >  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4
> backend.
> > >  > Everything works great so far including my first test
> restores.
> > >  > However, today I tried to do a restore of /etc/hosts.  I
> > enter file
> > >  > selection mode, cd /etc, mark hosts, then do an estimates
> > and it
> > > says 2
> > >  > files are marked for restoration.  Ok, thats weird.
> > >
> > > I'm not sure there, but I see two possible reasons for this:
> The
> > > second file could either be the /etc directory, or...
> > >
> > >  >  When I finish the
> > >  > restore, no files are restored, except the
> > >  > etc/sysconfig/networking/profiles/default directory
> > > structure.  Now, on
> > >  > the real filesystem, there is a hosts file in that
> > directory, as
> > > well as
> > >  > /etc/hosts.  But they are not symlinked.
> > >
> > > ... the two files are not symlinked but hard links to only one
> > set of
> > > data.
> > >
> > >  >  It seems like Bacula is
> > >  > getting confused about which hosts file I actually want
> > restored.  It
> > >  > happens if I set the restore client to the same machine, or
> a
> > > different
> > >  > one.
> > >
> > > I think that, in case these files are hard links, Bacula
> should
> > > restore the one you explicitly selected, i.e. /etc/hosts. What
> it
> > > should do the other hard links is something *I* wouldn't want
> to
> > > decide...
> > >
> > > Arno
> > >
> > >  >
> > >  > Perhaps this is just my inexperience with the software, but
> can
> > > someone
> > >  > offer a suggestion as to what the problem might be?  Maybe
> > > someone else
> > >  > can confirm this happens with them?  Thanks
> > >  >
> > >  > Jason
> > >  >
> > >

Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I don't know if you've checked this in the manual, but there is
something that refers to behavior when encountering hard links in there.

=R

jay wrote:
> I don't have a problem doing this here.  But if I am restoring 20,000
> files and some of those are hard linked, which I might or might not know
> about, then it might be an issue.  I think some type of warning would've
> been really nice in the restore email.  Maybe?
> 
> Jason
> 
> On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > wrote:
> 
> Hi,
> 
> 01.10.2007 20:57,, jay wrote::
> > Thanks Chris and Arno,
> >
> > The files are indeed hard linked
> >
> > [EMAIL PROTECTED] ~]# stat /etc/hosts
> >   File: `/etc/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096  
> regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49: 55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> >
> > [EMAIL PROTECTED] ~]# stat
> /etc/sysconfig/networking/profiles/default/hosts
> >   File: `/etc/sysconfig/networking/profiles/default/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096  
> regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49:55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> > [EMAIL PROTECTED] ~]#
> >
> > Now that we have established that, is there a way to restore that
> file
> > with Bacula?  Or does Bacula not handle hard links?
> 
> But didn't you just lear that Bacula handles hard links? ;-)
> 
> Admittedly, it might handle them differently... for now, I'd suggest
> to simple rm /etc/hosts and link it to the restored copy again.
> 
> Arno
> 
> > Thanks for the quick responses
> >
> > Jason
> >
> >
> > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> 
> > mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Hi,
> >
> > 01.10.2007 20:05,, jay wrote::
> >  > Hello,
> >  >
> >  > I'm having a weird problem trying to restore /etc/hosts on a
> > RHEL4 box.
> >  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
> >  > Everything works great so far including my first test restores.
> >  > However, today I tried to do a restore of /etc/hosts.  I
> enter file
> >  > selection mode, cd /etc, mark hosts, then do an estimates
> and it
> > says 2
> >  > files are marked for restoration.  Ok, thats weird.
> >
> > I'm not sure there, but I see two possible reasons for this: The
> > second file could either be the /etc directory, or...
> >
> >  >  When I finish the
> >  > restore, no files are restored, except the
> >  > etc/sysconfig/networking/profiles/default directory
> > structure.  Now, on
> >  > the real filesystem, there is a hosts file in that
> directory, as
> > well as
> >  > /etc/hosts.  But they are not symlinked.
> >
> > ... the two files are not symlinked but hard links to only one
> set of
> > data.
> >
> >  >  It seems like Bacula is
> >  > getting confused about which hosts file I actually want
> restored.  It
> >  > happens if I set the restore client to the same machine, or a
> > different
> >  > one.
> >
> > I think that, in case these files are hard links, Bacula should
> > restore the one you explicitly selected, i.e. /etc/hosts. What it
> > should do the other hard links is something *I* wouldn't want to
> > decide...
> >
> > Arno
> >
> >  >
> >  > Perhaps this is just my inexperience with the software, but can
> > someone
> >  > offer a suggestion as to what the problem might be?  Maybe
> > someone else
> >  > can confirm this happens with them?  Thanks
> >  >
> >  > Jason
> >  >
> >  >
> >  >
> >
> 
> 
> >  >
> >  >
> >
> -
> >  > This SF.net email is sponsored by: Microsoft
> >  > Defy all challenges. Microsoft(R) Visual Studio 2005.
> >  > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > < http://clk.atdmt.com/MRT/go/vse012070mrt/direct/0

Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
I don't have a problem doing this here.  But if I am restoring 20,000 files
and some of those are hard linked, which I might or might not know about,
then it might be an issue.  I think some type of warning would've been
really nice in the restore email.  Maybe?

Jason

On 10/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.10.2007 20:57,, jay wrote::
> > Thanks Chris and Arno,
> >
> > The files are indeed hard linked
> >
> > [EMAIL PROTECTED] ~]# stat /etc/hosts
> >   File: `/etc/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096   regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49:55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> >
> > [EMAIL PROTECTED] ~]# stat /etc/sysconfig/networking/profiles/default/hosts
> >   File: `/etc/sysconfig/networking/profiles/default/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096   regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49:55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> > [EMAIL PROTECTED] ~]#
> >
> > Now that we have established that, is there a way to restore that file
> > with Bacula?  Or does Bacula not handle hard links?
>
> But didn't you just lear that Bacula handles hard links? ;-)
>
> Admittedly, it might handle them differently... for now, I'd suggest
> to simple rm /etc/hosts and link it to the restored copy again.
>
> Arno
>
> > Thanks for the quick responses
> >
> > Jason
> >
> >
> > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > > wrote:
> >
> > Hi,
> >
> > 01.10.2007 20:05,, jay wrote::
> >  > Hello,
> >  >
> >  > I'm having a weird problem trying to restore /etc/hosts on a
> > RHEL4 box.
> >  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
> >  > Everything works great so far including my first test restores.
> >  > However, today I tried to do a restore of /etc/hosts.  I enter
> file
> >  > selection mode, cd /etc, mark hosts, then do an estimates and it
> > says 2
> >  > files are marked for restoration.  Ok, thats weird.
> >
> > I'm not sure there, but I see two possible reasons for this: The
> > second file could either be the /etc directory, or...
> >
> >  >  When I finish the
> >  > restore, no files are restored, except the
> >  > etc/sysconfig/networking/profiles/default directory
> > structure.  Now, on
> >  > the real filesystem, there is a hosts file in that directory, as
> > well as
> >  > /etc/hosts.  But they are not symlinked.
> >
> > ... the two files are not symlinked but hard links to only one set
> of
> > data.
> >
> >  >  It seems like Bacula is
> >  > getting confused about which hosts file I actually want
> restored.  It
> >  > happens if I set the restore client to the same machine, or a
> > different
> >  > one.
> >
> > I think that, in case these files are hard links, Bacula should
> > restore the one you explicitly selected, i.e. /etc/hosts. What it
> > should do the other hard links is something *I* wouldn't want to
> > decide...
> >
> > Arno
> >
> >  >
> >  > Perhaps this is just my inexperience with the software, but can
> > someone
> >  > offer a suggestion as to what the problem might be?  Maybe
> > someone else
> >  > can confirm this happens with them?  Thanks
> >  >
> >  > Jason
> >  >
> >  >
> >  >
> >
> 
> >  >
> >  >
> >
> -
> >  > This SF.net email is sponsored by: Microsoft
> >  > Defy all challenges. Microsoft(R) Visual Studio 2005.
> >  > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > 
> >  >
> >  >
> >  >
> >
> 
> >  >
> >  > ___
> >  > Bacula-users mailing list
> >  > Bacula-users@lists.sourceforge.net
> > 
> >  > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
> > --
> > Arno Lehmann
> > IT-Service Lehmann
> > www.its-lehmann.de 
> >
> >
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/dir

Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread Arno Lehmann
Hi,

01.10.2007 20:57,, jay wrote::
> Thanks Chris and Arno,
> 
> The files are indeed hard linked
> 
> [EMAIL PROTECTED] ~]# stat /etc/hosts
>   File: `/etc/hosts'
>   Size: 591 Blocks: 16 IO Block: 4096   regular file
> Device: 802h/2050d  Inode: 33011   Links: 2
> Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> Access: 2007-10-01 13:52:26.0 -0500
> Modify: 2007-07-30 09:49:55.0 -0500
> Change: 2007-07-30 09:49:55.0 -0500
> 
> [EMAIL PROTECTED] ~]# stat /etc/sysconfig/networking/profiles/default/hosts
>   File: `/etc/sysconfig/networking/profiles/default/hosts'
>   Size: 591 Blocks: 16 IO Block: 4096   regular file
> Device: 802h/2050d  Inode: 33011   Links: 2
> Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> Access: 2007-10-01 13:52:26.0 -0500
> Modify: 2007-07-30 09:49:55.0 -0500
> Change: 2007-07-30 09:49:55.0 -0500
> [EMAIL PROTECTED] ~]#
> 
> Now that we have established that, is there a way to restore that file 
> with Bacula?  Or does Bacula not handle hard links?

But didn't you just lear that Bacula handles hard links? ;-)

Admittedly, it might handle them differently... for now, I'd suggest 
to simple rm /etc/hosts and link it to the restored copy again.

Arno

> Thanks for the quick responses
> 
> Jason
> 
> 
> On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED] 
> > wrote:
> 
> Hi,
> 
> 01.10.2007 20:05,, jay wrote::
>  > Hello,
>  >
>  > I'm having a weird problem trying to restore /etc/hosts on a
> RHEL4 box.
>  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
>  > Everything works great so far including my first test restores.
>  > However, today I tried to do a restore of /etc/hosts.  I enter file
>  > selection mode, cd /etc, mark hosts, then do an estimates and it
> says 2
>  > files are marked for restoration.  Ok, thats weird.
> 
> I'm not sure there, but I see two possible reasons for this: The
> second file could either be the /etc directory, or...
> 
>  >  When I finish the
>  > restore, no files are restored, except the
>  > etc/sysconfig/networking/profiles/default directory
> structure.  Now, on
>  > the real filesystem, there is a hosts file in that directory, as
> well as
>  > /etc/hosts.  But they are not symlinked.
> 
> ... the two files are not symlinked but hard links to only one set of
> data.
> 
>  >  It seems like Bacula is
>  > getting confused about which hosts file I actually want restored.  It
>  > happens if I set the restore client to the same machine, or a
> different
>  > one.
> 
> I think that, in case these files are hard links, Bacula should
> restore the one you explicitly selected, i.e. /etc/hosts. What it
> should do the other hard links is something *I* wouldn't want to
> decide...
> 
> Arno
> 
>  >
>  > Perhaps this is just my inexperience with the software, but can
> someone
>  > offer a suggestion as to what the problem might be?  Maybe
> someone else
>  > can confirm this happens with them?  Thanks
>  >
>  > Jason
>  >
>  >
>  >
> 
>  >
>  >
> -
>  > This SF.net email is sponsored by: Microsoft
>  > Defy all challenges. Microsoft(R) Visual Studio 2005.
>  > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
>  >
>  >
>  >
> 
>  >
>  > ___
>  > Bacula-users mailing list
>  > Bacula-users@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/

Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
Thanks Chris and Arno,

The files are indeed hard linked

[EMAIL PROTECTED] ~]# stat /etc/hosts
  File: `/etc/hosts'
  Size: 591 Blocks: 16 IO Block: 4096   regular file
Device: 802h/2050d  Inode: 33011   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
Access: 2007-10-01 13:52:26.0 -0500
Modify: 2007-07-30 09:49:55.0 -0500
Change: 2007-07-30 09:49:55.0 -0500

[EMAIL PROTECTED] ~]# stat /etc/sysconfig/networking/profiles/default/hosts
  File: `/etc/sysconfig/networking/profiles/default/hosts'
  Size: 591 Blocks: 16 IO Block: 4096   regular file
Device: 802h/2050d  Inode: 33011   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
Access: 2007-10-01 13:52:26.0 -0500
Modify: 2007-07-30 09:49:55.0 -0500
Change: 2007-07-30 09:49:55.0 -0500
[EMAIL PROTECTED] ~]#

Now that we have established that, is there a way to restore that file with
Bacula?  Or does Bacula not handle hard links?

Thanks for the quick responses

Jason


On 10/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.10.2007 20:05,, jay wrote::
> > Hello,
> >
> > I'm having a weird problem trying to restore /etc/hosts on a RHEL4 box.
> > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
> > Everything works great so far including my first test restores.
> > However, today I tried to do a restore of /etc/hosts.  I enter file
> > selection mode, cd /etc, mark hosts, then do an estimates and it says 2
> > files are marked for restoration.  Ok, thats weird.
>
> I'm not sure there, but I see two possible reasons for this: The
> second file could either be the /etc directory, or...
>
> >  When I finish the
> > restore, no files are restored, except the
> > etc/sysconfig/networking/profiles/default directory structure.  Now, on
> > the real filesystem, there is a hosts file in that directory, as well as
> > /etc/hosts.  But they are not symlinked.
>
> ... the two files are not symlinked but hard links to only one set of
> data.
>
> >  It seems like Bacula is
> > getting confused about which hosts file I actually want restored.  It
> > happens if I set the restore client to the same machine, or a different
> > one.
>
> I think that, in case these files are hard links, Bacula should
> restore the one you explicitly selected, i.e. /etc/hosts. What it
> should do the other hard links is something *I* wouldn't want to decide...
>
> Arno
>
> >
> > Perhaps this is just my inexperience with the software, but can someone
> > offer a suggestion as to what the problem might be?  Maybe someone else
> > can confirm this happens with them?  Thanks
> >
> > Jason
> >
> >
> > 
> >
> >
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> >
> >
> > 
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread Arno Lehmann
Hi,

01.10.2007 20:05,, jay wrote::
> Hello,
> 
> I'm having a weird problem trying to restore /etc/hosts on a RHEL4 box.  
> I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.  
> Everything works great so far including my first test restores.  
> However, today I tried to do a restore of /etc/hosts.  I enter file 
> selection mode, cd /etc, mark hosts, then do an estimates and it says 2 
> files are marked for restoration.  Ok, thats weird.

I'm not sure there, but I see two possible reasons for this: The 
second file could either be the /etc directory, or...

>  When I finish the 
> restore, no files are restored, except the 
> etc/sysconfig/networking/profiles/default directory structure.  Now, on 
> the real filesystem, there is a hosts file in that directory, as well as 
> /etc/hosts.  But they are not symlinked.

... the two files are not symlinked but hard links to only one set of 
data.

>  It seems like Bacula is 
> getting confused about which hosts file I actually want restored.  It 
> happens if I set the restore client to the same machine, or a different 
> one.

I think that, in case these files are hard links, Bacula should 
restore the one you explicitly selected, i.e. /etc/hosts. What it 
should do the other hard links is something *I* wouldn't want to decide...

Arno

> 
> Perhaps this is just my inexperience with the software, but can someone 
> offer a suggestion as to what the problem might be?  Maybe someone else 
> can confirm this happens with them?  Thanks
> 
> Jason
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread Chris Shelton
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason,

On Mon, 1 Oct 2007 at 1:05pm, jay wrote:

> I'm having a weird problem trying to restore /etc/hosts on a RHEL4 
> box.  I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.  
> Everything works great so far including my first test restores.  
> However, today I tried to do a restore of /etc/hosts.  I enter file 
> selection mode, cd /etc, mark hosts, then do an estimates and it 
> says 2 files are marked for restoration.  Ok, thats weird.  When I 
> finish the restore, no files are restored, except the 
> etc/sysconfig/networking/profiles/default directory structure.  
> Now, on the real filesystem, there is a hosts file in that 
> directory, as well as /etc/hosts.  But they are not symlinked.

Actually, I would strongly suspect that these two files are hard 
linked together.  I have an older RH based system that shows the 
following:

[EMAIL PROTECTED] ~]$ stat /etc/hosts
  File: "/etc/hosts"
  Size: 365 Blocks: 8  IO Block: 4096   Regular File
Device: 803h/2051d  Inode: 82900   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/ root)
Access: Thu Sep 20 11:02:26 2007
Modify: Sun Sep  2 09:48:41 2007
Change: Sun Sep  2 09:48:41 2007

[EMAIL PROTECTED] ~]$ stat /etc/sysconfig/networking/profiles/default/hosts
  File: "/etc/sysconfig/networking/profiles/default/hosts"
  Size: 365 Blocks: 8  IO Block: 4096   Regular File
Device: 803h/2051d  Inode: 82900   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
Access: Thu Sep 20 11:02:26 2007
Modify: Sun Sep  2 09:48:41 2007
Change: Sun Sep  2 09:48:41 2007

Notice that the Inode number is identical between these 2 files, which 
proves they are hard linked together.  

> It seems like Bacula is getting confused about which hosts file I 
> actually want restored.  It happens if I set the restore client to 
> the same machine, or a different one.
> 
> Perhaps this is just my inexperience with the software, but can 
> someone offer a suggestion as to what the problem might be?  Maybe 
> someone else can confirm this happens with them?  Thanks

If these files do have different inode numbers, they are different 
files.  If the inode numbers are the same, they are just a single file 
with multiple names.

chris

- -- 
Chris Shelton
Indiana University - Financial Management Services
- -

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHAT5dM5TknMKatUwRAtARAJ0dE65geKEITjLMTGwvRvaPlDxruwCgmP+v
1e0bnkKFiGrhXf1+iiQCuvc=
=mWee
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users