[Top][All Lists]

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

Re: Copying a directory + purge + links cfengine 2.0.a15

From: Mark . Burgess
Subject: Re: Copying a directory + purge + links cfengine 2.0.a15
Date: Thu, 10 Jan 2002 21:34:25 +0100 (MET)

On 10 Jan, Sheryl Coppenger wrote:
> Hi,
> I'm an new cfengine user, running 2.0.a15.  So far, most things I've
> tried are running well, but I have a directory struction that I need
> to copy and buried within the structure are a lot of links.  The copy
> is skipping the links, so what I get is
>    Old                    What should happen          Result
>    .../bin/abc      .../bin/abc->./abc2               .../bin/abc  (old 
> binary)
>    .../bin/abc1           (not there)                 (not there)
>    .../bin/abc2           .../bin/abc2                .../bin/abc2 (new 
> binary)
>                   .../bin/xyz->xyz2           .../bin/xyz->xyz2
>                   .../bin/xyz2                .../bin/xyz2
> My configuration file contains
>       from-dir        dest=todir
>                       recurse=inf
>                       purge=true
>                       backup=false
>                       type=checksum
> What am I missing?  I tried adding a links step but since the files
> exist it refuses to remove them and make the links.  And I'd prefer
> to do this all in the copy because I can't guarantee how the structure
> will change over time and I don't want to have to rewrite the config
> every time the software changes.
> Thanks,
> Sheryl

Sheryl, my guess is that you need to force=true the links, since
cfengine doesn't link to files/dirs which do not exist by default.

good luck,

Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :

reply via email to

[Prev in Thread] Current Thread [Next in Thread]