Forum: CFEngine Help Subject: Re: Rsync like replication Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,25912,25913#msg-25913
I've come up with the following that appears to function as I need it too. body file_select exclude_middleware_logs { path_name => { "/t02/middleware/admin/domains/.*server/.*/servers/.*/logs/.*" }; file_result => "!path_name"; } However as soon as I try to add in some leaf_name exceptions to it, it ignores the path_name setting body file_select exclude_middleware_logs { leaf_name => { "heapdump.*" }; path_name => { "/t02/middleware/admin/domains/.*server/.*/servers/.*/logs/.*" }; file_result => "!path_name|!leaf_name"; } cf3> -> File permissions on /t02/middleware/admin/domains/mserver/IAMDomain/servers/wls_oim1/logs/metrics as promised cf3> -> /t02/middleware/admin/domains/mserver/IAMDomain/servers/wls_oim1/logs/metrics/metricdump-20120511.093420.log.gz wasn't at destination (copying) cf3> -> Copying from *.*.*.*:/t02/middleware/admin/domains/mserver/IAMDomain/servers/wls_oim1/logs/metrics/metricdump-20120511.093420.log.gz is this a bug ( CFEngine Core 3.3.1) or have a I missed something, as the manual appears to say this can be done. Cheers _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine