[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file copy and remove
From: |
Sabrina Lautier |
Subject: |
file copy and remove |
Date: |
Thu, 18 Jul 2002 18:57:07 +0200 |
Hi !
I use cfengine 2.0.1 and can't find an easy solution to do what I
want... here is what I would like to do:
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
**After having runned cfengine
server side client side
hostname.eri0 hostname.eri0
--------------------------------------------
I've tried the following:
copy:
<cfengine_root>/network dest=/etc
r=1
include=hostname.*
purge=true
server=<server_name>
But this remove all files which are not hostname.eri0, ...
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)
- file copy and remove,
Sabrina Lautier <=