bug-cfengine
[Top][All Lists]
Advanced

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

Re: 2.0a16 - copy with purge does not respect "include="


From: Mark . Burgess
Subject: Re: 2.0a16 - copy with purge does not respect "include="
Date: Tue, 26 Feb 2002 11:19:19 +0100 (MET)

I do not fully understand this. Include checks for certain patterns
of files within the directories which are spanned by the recursive
search. It has no effect on subdirectories, that would require "ignore".
The purge command depends on the files which are seen by the search, so
if the recursion level is too low, it will not "see" the subdirectories.

Mark


On  6 Feb, Thorn Roby wrote:
> The documentation states that "include" automatically excludes "everything
> else except further include patterns". However, the following copy command
> 
> /cf/s/$(host)/TRANS dest=/TRANS include=*.jar server=cf.me.com rec=1
> timestamps=keep backup=false define=trans mode=0644 purge=true
> 
> recursively (and silently) purges subdirectories which are not present on
> the source machine, apparently ignoring the include directive. Setting
> "rec=0" causes the purge to be limited to the top level directory, and only
> "*.jar", as desired. By contrast, however, in other copy operations not
> involving purge I have had to set recursion=1 in order to have any effect on
> files in the top level directory, although it would seem that operations on
> files in the top level of a start path should not require any recursion.
> 
> Solaris 8, gcc 2.95.2.
> 
> Thorn Roby, Senior Systems Engineer
> Cavion Technologies, 6446 South Kenton St
> Englewood CO  80111   (720) 875 1949
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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