We took a script that Charlie Bursell provided and modified it to our needs. It has been working fine. Each night it takes the .msg and .idx old files and copies them to an archive directory using the date as an extension so we can identify them later. We are currently only keeping 2 weeks worth, due to storage limitations. If you think this might be something you can use, I would be glad to send it to you. Are you using the failover scripts that QDXi provides? They have shutdown and startup scripts with that as well.