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.000000000 -0500
> Modify: 2007-07-30 09:49:55.000000000 -0500
> Change: 2007-07-30 09:49:55.000000000 -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.000000000 -0500
> Modify: 2007-07-30 09:49:55.000000000 -0500
> Change: 2007-07-30 09:49:55.000000000 -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/vse0120000070mrt/direct/01/
>     <http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Bacula-users mailing list
>      > Bacula-users@lists.sourceforge.net
>     <mailto:Bacula-users@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
>     --
>     Arno Lehmann
>     IT-Service Lehmann
>     www.its-lehmann.de <http://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/vse0120000070mrt/direct/01/
>     _______________________________________________
>     Bacula-users mailing list
>     Bacula-users@lists.sourceforge.net
>     <mailto: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/vse0120000070mrt/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/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to