<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Arial">Hello<br>
<br>
I recently upgraded my dxspider to ver 1.57 build 441.<br>
<br>
I have allways used the script below to remove old data in
/spider/data/log, /spider/data/debug and /spider /data spots.<br>
<br>
I know that the data is now in /spider/local_data/spots (etc) so I
have this in the script:<br>
<br>
#!/bin/sh We need to delete old files.<br>
spiderdir="/spider/local_data/spots/2022" if [ -n "$spiderdir" ]
&& [ -d<br>
"$spiderdir" ]; then<br>
# only keep three days' depth of these<br>
find "$spiderdir" -type f -mtime +3 -exec rm {} \; fi<br>
spiderdir="/spider/local_data/debug/2022" if [ -n "$spiderdir" ]
&& [ -d<br>
"$spiderdir" ]; then<br>
# only keep a couple of day's depth of these<br>
find "$spiderdir" -type f -mtime +2 -exec rm {} \; fi<br>
spiderdir="/spider/local_data/log/2022" if [ -n "$spiderdir" ]
&& [ -d<br>
"$spiderdir" ]; then<br>
# only keep a week's depth of these<br>
find "$spiderdir" -type f -mtime +7 -exec rm {} \;<br>
fi<br>
<br>
<font style="font-size: 13pt" size="4">The script is in
/etc/cron.daily/spider and the rights are chmod a+x spider</font><br>
<br>
<font style="font-size: 13pt" size="4">The script for cleaning up
is :</font><br>
<font style="font-size: 13pt" size="4"><br>
</font><br>
#!/bin/sh<br>
# We need to delete old files.<br>
logdir="/var/log"<br>
rm $logdir/*.gz<br>
<br>
It is in etc/cron.weekly/clear_log.sh and the rights are chmod a+x
clear_log.sh</font><br>
<p style="margin-bottom: 0cm">My question is is this the right way
to do it?</p>
<pre class="moz-signature" cols="72">--
73
Jan
PA4JJ
______________________________________________________
My dxspider clusters running 24/7 on a raspberry pi 2
pa4jj-2 telnet 77.174.195.163 port 7300
pa4jj-3 telnet 77.174.195.163 port 7388</pre>
</body>
</html>