Bacula-users

Re: [Bacula-users] Error on Bacula job

2008-11-20 09:19:32
Subject: Re: [Bacula-users] Error on Bacula job
From: Daniel Bareiro <daniel-listas AT gmx DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 20 Nov 2008 12:16:11 -0200
On Monday, 17 November 2008 09:41:28 +0100,
Arno Lehmann wrote:

> Hi,

Hi Arno.
 
> > [...]
> 
> Hard to tell now. I would suggest to fix the command invocations so 
> that you don't use shell globbing but rather let find do it's work... 
> which is what you want, probably - you wouldn't use find otherwise.
> 
> Also, try to use the stderr redirection to /dev/null so you don't get 
> all the find errors into the job report.
> 
> If there are still differences between the jobs, a debug log of the 
> fileset execution on two of the clients might help.
> 
> Unfortunately, I don't know which debug level produces a log of what 
> the fileset processing does, and I can't find it in the coede now :-)

In the end instead of to complicate to me with another thing, I decided
to change the original FileSet from this:

FileSet {
  Name = "Bases"
  Include {
    Options {
      signature = SHA1
      wildfile = "*.bz2"
    }
    Options {
      Exclude = yes
      RegexFile = ".*"
    }
    # File = /space/backup/sdpbkp/oracle/export
    File = "\\|bash -c \"echo /space/backup/$HOSTNAME/oracle/export/ \""

  }
  Include {
    Options {
      signature = SHA1
    }
    File = /etc
    File = "\\|bash -c \"find /space/backup/$HOSTNAME/*_etc.tar.gz \""
    File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/controlfile/ \""
    File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/pfile/ \""
    File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/scripts/ \""
    File = "\\|bash -c \"echo /space/backup/$HOSTNAME/pkg_list/ \""
    File = "\\|bash -c \"echo /space/backup/$HOSTNAME/home/ \""
    File = "\\|bash -c \"echo /space/log/$HOSTNAME/oracle/ \""
  }
}


to this:


FileSet {
  Name = "Bases"
  Include {
    Options {
      signature = SHA1
      wildfile = "*.bz2"
    }
    Options {
      Exclude = yes
      RegexFile = ".*"
    }
    # File = /space/backup/sdpbkp/oracle/export
    File = "\\|bash -c \"echo /space/backup/$HOSTNAME/oracle/export/ \""

  }
  Include {
    Options {
      signature = SHA1
    }
    Options {
      wilddir = /space/backup/$HOSTNAME/oracle/export
      exclude = yes
    }
    File = /etc
    File = "\\|bash -c \"find /space/ -maxdepth 1 -type d -name backup -o -name 
log\""

    #File = "\\|bash -c \"find /space/backup/$HOSTNAME/*_etc.tar.gz \""         
 <---
    #File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/controlfile/ \""  
 <---
    #File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/pfile/ \""        
 <---
    #File = "\\|bash -c \"find /space/backup/$HOSTNAME/oracle/scripts/ \""
    #File = "\\|bash -c \"echo /space/backup/$HOSTNAME/pkg_list/ \""
    #File = "\\|bash -c \"echo /space/backup/$HOSTNAME/home/ \""
    #File = "\\|bash -c \"echo /space/log/$HOSTNAME/oracle/ \""
  }
}

I Think it would be _almost_ equivalent.

This solution does not give errors, but the problem with this is that
the /space/backup/$HOSTNAME/oracle/export directory is processing itself
twice. I tried using 'exclude' with 'wilddir', but it does not seem to
cause the awaited effect.

By the sight, the indicated three directives File were those that gave
problems ---even redirecting stderr to /dev/null---, because when
commenting them, I got no error from "estimate" command.

Thanks for your reply, Arno.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>