help-cfengine
[Top][All Lists]
Advanced

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

Re: Strange copying


From: Frank Ranner
Subject: Re: Strange copying
Date: Sat, 04 Mar 2006 23:13:33 +1100
User-agent: Thunderbird 1.5 (Windows/20051201)

Roger Harrysson wrote:
I use cfenigne from cron. It runs every 30 minutes and works fine.
Mostly I copy files from the server if they have chenged on the cfengine server.
However, everytime a change a file on the server I get the copy done twice!
One time correct (at most 30 minutes after the change), but also one time at 01:30 in the morning.

Why this second copy when the file already is in place?

Can I stop this misbehavour?

The problem is that when I change a file on the client there should be no copy from the server, but there is.
AT 01:30 IN THE NIGHT! When noone is around to fix the problem.

We have currently taken away cfengine from all our servers, since we can not live with this risk.
Sad for such a good software.

Kind regards,
Roger Harrysson


Use mtime on your copies. The default is ctime which will clash with backups (which you are presumably running around 1am?) The problem with backups is that they change atime because the must open and read the file. Then they reset atime back to it's original value, which changes ctime! Thus triggering a pointless copy next time cfagent runs.

Been there, done that, got the t-shirt!

regard,
Frank Ranner


reply via email to

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