[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
action copy options
From: |
Sabrina Lautier |
Subject: |
action copy options |
Date: |
Tue, 23 Jul 2002 11:43:53 +0200 |
Hi !
I use cfengine 2.0.1 and can't find an easy solution to do what I
want...
I would like cfengine to copy files hostname.* from the server to the
directory /etc on the client side.
But I also would like it to remove files which exist on the client
side but not on the server side.
Example:
--------------------------------------------
**Before running cfengine
server side client side
hostname.eri0 hostname.eri0
hostname.qfe0
toto
tutu
**After having runned cfengine
server side client side
hostname.eri0 hostname.eri0
toto
tutu
--------------------------------------------
I've tried the following with the purge option set to yes:
--------------------------------------------
copy:
<cfengine_root>/network dest=/etc
r=1
include=hostname.*
purge=true
server=<server_name>
--------------------------------------------
But this gives the following result:
--------------------------------------------
server side client side
hostname.eri0 hostname.eri0
--------------------------------------------
It removes all files which are not hostname.eri0... the thing is that
I don't want files toto and tutu to be removed.
Is there an easy way to perform this ?
Any help will be greatly appreciated.
Regards,
Sabrina
---------------------------------------------
Powered by Alinto (http://www.alinto.net)
for lavache.com (http://www.lavacheautomatique.com)