[ previous ] [ next ] [ threads ]
 From:  Frederick Page <fpage at thebetteros dot oche dot de>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Automated config.xml remote backup - solution
 Date:  Sat, 23 Oct 2004 17:28:02 +0200
Hallo monideth.pen,

monideth dot pen at unitednetworks dot co dot uk schrieb am 22. October 2004:

>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.

One line, if you want to keep 14 days worth of configs:

find /your/directory/. -type f -iname '*.xml' -mtime 14 -exec rm {} \;

Regards   Frederick