On Fri, 22 Oct 2004 11:59:23 +0100
monideth dot pen at unitednetworks dot co dot uk wrote:
> I suggest you change the script to moving the file to a archive directory
> (or just zip it up).
> The reason for this is that if you manage to somehow get a bad config.xml
> file then you risc losing your (potentially only) good one! The other
> reason is that it makes it easier to roll back to a previous config - or
> check previous configurations.
> However, there is also the issue of how many of these backup files to
> keep, which will mean your script will be a bit more complicated.
Yes, you're right.
I changed it to save only and don't delete anything. Then run the script from cron daily, and handle
the archives by logrotate :)
I hope it will be o.k. now