What's wrong with this rotate.conf?
Goal is to delete only files older than four hours
path/to/tokens/*.tkn {
nosharedscripts
prerotate
if test `stat --format=%Y $1` -le $(( `date +%s` - 14400 ));
then exit $?;
fi;'
endscript
rotate 0
}
برچسب:
نویسنده: استخدام کار