Article delegate-en/3007 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3000@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: news proxy expire - how ?
09 Jul 2005 19:39:58 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


On 07/07/05(03:20) you "damir" <damir@wisp-hr..> wrote
in <_A3000@delegate-en.ML_>
 |I was install delegate for nt with folowing options:
 |
 |dg.exe -P119 SERVER=nntp EXPIRE0d CRON="0 * * * * -expire 30d" MOUNT="nntp://news.myisp.com./" CACHE=do DGROOT="D:\delegate01-myisp.com"
 |ADMIN="admin@somewhere.."
 |PERMIT="*:*:192.168.0.0/24,192.168.1.0/24,192.168.2.0/24,192.168.3.0/24,213.
 |149.46.14/29,127.0.0.1/32"
 |
 |Well everything is fine , but now my disk is full (80 gb) and delegate stop
 |to work ... then I must delete some files under cashe directories manualy
 |and restar delegate ... then everything is fine till next time ...
 |I was watch expire log and there is no evidence that delegate delete old
 |files ...
 |Does delegate delete files older than EXPIRE parameter (30 days) , or I must
 |do this manualy?

The argument "-atime 30d" in the log means "not accessed (just) for 30days",
that is, the "last access date" of a file is just 30days old.
If this expire is done every day, there should be no file of which
"last access date" is older than 30days.  But if it is not the case,
or if you shortened the expire period, files older than 30days will
be left without expired.

Thus specify as "-expire +30" to indicate "not accessed for 30days or more".


 |Here is log:
 |2005/00/00-00:00:0X [18036] D:\/delegate01-myisp.com/cache -rm -atime
 |30d -sum
 |2005/00/00-00:00:0X [18036] D:\/delegate01-myisp.com/cache: 138687808 blk,
 |724 dir, 155850 reg, 0 rem (0 blk), 0 err, 30 sec
 |
 |Line  0 rem (0 blk),  says that is 0 files removed?
 |Maybe I install with wrong parameters? If is true how to do right install?

The reference manual says that "-expire 3" means "-atime +3", but the
implementation has not been consistent with it.  So I'll fix it as
the enclosed patch.

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

*** ../delegate9.0.3-pre28/src/croncom.c	Wed Dec  8 16:59:35 2004
--- src/croncom.c	Sun Jul 10 04:35:31 2005
***************
*** 153,158 ****
--- 153,161 ----
  		if( env = DELEGATE_getEnv(P_EXPIRE) )
  			strcpy(period,env);
  		else	strcpy(period,"+7d");
+ 		if( *period != '+' ){
+ 			Strins(AVStr(period),"+");
+ 		}
  
  		ac = 0;
  		av[ac++] = "-Fexpire";

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V