[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keeping mtimes in sync
From: |
Brendan Strejcek |
Subject: |
Re: keeping mtimes in sync |
Date: |
Wed, 10 Mar 2004 23:41:38 -0600 |
User-agent: |
Mutt/1.3.28i |
rader@ginseng.hep.wisc.edu wrote:
> I want to make sure destination mtimes are in sync with my masterfiles.
Locking problem maybe? Note the -K in my example.
$ cat test.cf
#!/usr/sbin/cfagent -qIKf
control: actionsequence = ( copy )
copy: /tmp/a dest=/tmp/b type=mtime
$ cp /etc/passwd /tmp/a
$ ./test.cf
cfengine:: Copying from localhost:/tmp/a
cfengine:: Object /tmp/b had permission 600, changed it to 644
$ ./test.cf
$ touch /tmp/a
$ ./test.cf
cfengine:: Update of image /tmp/b from master /tmp/a on localhost
cfengine:: Object /tmp/b had permission 600, changed it to 644
$
That's all I can come up with... btw timestamps=preserve is default.
-- Brendan