[ previous ] [ next ] [ threads ]
 From:  Imre Ispanovits <iimre at vnet dot hu>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Automated config.xml remote backup - solution
 Date:  Fri, 22 Oct 2004 15:04:29 +0200
On Fri, 22 Oct 2004 11:59:23 +0100
monideth dot pen at unitednetworks dot co dot uk wrote:

> Imre,
> 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