help-cfengine
[Top][All Lists]
Advanced

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

Re: copy copies files that were not changed once in a while - feature??


From: Dmitry Sazonov
Subject: Re: copy copies files that were not changed once in a while - feature??
Date: Wed, 18 May 2005 11:19:41 -0400

Thanks, that's was it!

note "ls -l"  vs "ls -lc"

address@hidden dsazonov]$  ls -l 
/cfengine/config/cfengine/files/cfengine.startup
-rwxr-xr-x   1 root     other        528 May  3 11:48 
/cfengine/config/cfengine/files/cfengine.startup
address@hidden dsazonov]$  ls -lc 
/cfengine/config/cfengine/files/cfengine.startup
-rwxr-xr-x   1 root     other        528 May 14 21:25 
/cfengine/config/cfengine/files/cfengine.startup
address@hidden dsazonov]$ 

So I gave up and changed copy type to checksums.

control:

    any::

        DefaultCopyType = ( checksum )


--
Dmitry Sazonov
UNIX systems admin, AAMC
202-862-6168

>>> Frank Ranner <address@hidden> 05/14/05 7:51 AM >>>
Dmitry Sazonov wrote:
> copy:
>   /cfengine/config/cfengine/files/cfengine.startup 
> dest=/etc/init.d/cfengine mode=755 server=inet640
> 
> 
> The source have not changed for a while.
> type=checksum comparison seems to fixed the same issue for other files I 
> copy,
> but I don't want to start checksumming everything. modification time 
> should work just fine in most cases.
> Note -  it's even copies the file on the same host!
> Also note - that happens for all hosts in the same time - ie all 
> solarises today at 9:30 reported that copy.
> Why copy again?
> 
> Thanks in advance for any reasonable explanation!
> 
> 

If you do not specify mtime it uses ctime. In my case, ctime was being
changed by a backup process, which was trying to preserve atime. After
backing up each file, the backup process would set atime back to the 
original value, but that would set ctime to the current TOD. I think
there is a variable you can set to specify the default copy type, or
you can explicitly specify mtime on each copy stanza.

regards,
Frank Ranner

_______________________________________________
Help-cfengine mailing list
address@hidden 
http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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