[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collect section must contain at least one collect file or collect directory



On Wed, Dec 20, 2006 at 09:36:18PM -0600, Kenneth Pronovici wrote:
> On 12/19/06, Alejandro Weinstein <alejandro.weinstein@gmail.com> wrote:
> > Hi:
> >
> > At this moment, I just want to backup a subversion repository, so I
> > delete the directory field from the collect section, and after cback
> > validate I get the error:
> >
> > "Error reading or handling configuration: Collect section must contain
> > at least one collect file or collect directory"
> >
> > I also get the same error if do cback --full subversion stage store
> > purge .
> >
> > I think that this should not be considered as an error, since it is a
> > valid condition. May be this should be just a warning, or an error
> > only if you are not using other extention.
> >
> > I circumvent this by adding a dummy file to the cback.conf, but it
> > doesn't look too elegant.
> 
> Hmm, interesting problem.  I guess I didn't consider that someone
> would collect Subversion data but not filesystem data.  I should
> probably make the collect file/collect directory configuration
> optional or only validate it some of the time (like you suggest).
> 
> For the time being, you have a work around, so this is annoying but
> not urgent.  Let me give it some thought, and I'll try to come up with
> a sensible fix.

This is fixed in Cedar Backup v2.11.0.  Basically, I just moved the
validation from the config parsing step to the beginning of the collect
command itself.  That way, the file or dir is only required if collect
is actually run.

KEN

-- 
Kenneth J. Pronovici <pronovic@ieee.org>
http://www.cedar-solutions.com/


-- 
To unsubscribe, send mail to cedar-backup-users-unsubscribe@cedar-solutions.com.