help-cfengine
[Top][All Lists]
Advanced

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

Re: Recursion


From: Christopher Paolini
Subject: Re: Recursion
Date: Wed, 13 Jun 2001 16:58:02 -0700

Your message dated: Wed, 13 Jun 2001 23:59:13 BST
>Cfengine simply isn't behaving as the Reference says it should.
>According to the Reference, "The destination file is the only obligatory
>item... If the master and image are directories then all of the child
>files _which are not directories_ are copied from source to
>destination."
>
>Well, that just doesn't work.  At all.
>
>Say I have a direcory /a, containing a file "file.txt" and a directory
>"b".  If I try
>
>copy:
>       /a dest=/backup
>
>Nothing happens!  I have been trying variations on this for hours!
>Is it just that the version I am using - 1.5.3-6, on Debian 2.2 - is
>broken?
>

Bruce,

I believe you will need to include the recurse instruction.

Try this instead:

    copy:

        /a 
           dest=/backup
           recurse=inf

Christopher Paolini
System Administrator

----------------------------------------------------------------------
(619) 594-7159 (Voice)               5500 Campanile Drive, Room E-207C        
(619) 601-7258 (Emergency Pager)              San Diego, CA 92182-1326  
(619) 594-2068 (Facsimile)                    http://paolini.sdsu.edu/
(619) 584-3825 (Home)                           College of Engineering

     PGP Key via URL http://schottky.sdsu.edu/~paolini/pubkey.html
----------------------------------------------------------------------



reply via email to

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