help-cfengine
[Top][All Lists]
Advanced

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

Re: File distribution with 'type=checksum'


From: David E. Nelson
Subject: Re: File distribution with 'type=checksum'
Date: Fri, 12 Nov 2004 15:55:13 -0600 (CST)


I looked at filters and came up with the following but the links still aren't copying from /var/cfengine/stage to /var/cfengine/stagereview2. I've confirmed that the /var/cfengine/stage directory does have both regular files and symlinks.

This is what I'm using:

copy:

    any::

        /var/cfengine/stage
            dest=/var/cfengine/stagereview2
            filter=stagefiles
            recurse=inf
            type=checksum
            backup=timestamp
            inform=true

        /var/cfengine/stage
            dest=/var/cfengine/stagereview2
            filter=stagelinks
            recurse=inf
            type=ctime
            backup=timestamp
            inform=true

filters:

        { stagefiles
           Type:      "reg|dir"
           Result:    "Type"
        }

        { stagelinks
           Type:      "link"
           Result:    "Type"
        }

Thanks,
         /\/elson


On Fri, 12 Nov 2004, David E. Nelson wrote:


Hi All,

I wish to distribute a directory tree of files using 'type=checksum' and 'inform=true'. The problem is that w/in this tree there are symlinks which causes an informational msg to be displayed:

cfengine:barbrady: Checksum comparison replaced by ctime: files not regular

I do not want to use 'type=ctime' because if the local copy is newer the copy will not occur - I want to guarantee that the master copies are always distributed.

Is there a way to quell this but still retain 'type=checksum' and 'inform=true'?

Thanks,
         /\/elson





--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.




reply via email to

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