in reply to Re^2: [OT]Is there any module can rotate log file?
in thread [OT]Is there any module can rotate log file?
I assume the logfile rotation would be happening on the system being rsync'd FROM.
You'll have to check how rsync does its directory comparison, but I think it does it once at the start of the sync. So if the rotation happens after that point, but before the copies are complete, then your latest log slice might be missed by the rsync.
But it's not "lost" -- it's just not rsync'd.
All you have to do is set up the Rotate's to happen every n minutes (60, 120, whatever...), and rsync in the middle of those intervals. In that case, unless you've accumulated more data in n/2 minutes than rsync can move, rsync isn't going to conflict with the rotation...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [OT]Is there any module can rotate log file?
by sunshine_august (Scribe) on Oct 14, 2008 at 10:17 UTC | |
by JavaFan (Canon) on Oct 14, 2008 at 10:58 UTC |