[Dxspider-support] Best practices
Keith Maton
g6nhu at me.com
Wed Feb 8 22:14:30 GMT 2023
Looks like a missing close bracket.
Also looks like a missing ‘find’ command in the Maintain FS section as well ;-)
73 Keith
> On 8 Feb 2023, at 22:10, Björn Ekelund via Dxspider-support <dxspider-support at tobit.co.uk> wrote:
>
> This is very much appreciated. Is there a typo in the autoupdate section?
>
> Björn SM7IUN
>
>
> On Wed, Feb 8, 2023 at 8:27 PM Kin via Dxspider-support <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk>> wrote:
>> Kelly,
>>
>> This is one of the points I have noted for the wiki, but I can pass you a crontab adapted to the Mojo branch, as a working example:
>>
>>
>>
>> # Neighbour nodes
>>
>> 00,10,20,30,40,50 * * * * start_connect('EA4URE-3') unless connected('EA4URE-3')
>>
>>
>>
>> # RBN Servers
>>
>> * * * * * start_connect('SK0MMR') unless connected('SK0MMR')
>>
>> * * * * * start_connect('SK1MMR') unless connected('SK1MMR')
>>
>>
>>
>> # AutoUpdate DXSpider
>>
>> 0 4 * * 1,2,3,4,5 run_cmd("check_build Y
>>
>>
>>
>> # Export users
>>
>> 20 0 * * * run_cmd("export_users")
>>
>>
>>
>> # Maintain FS
>>
>> 0 0 * 1-12 * spawn("/spider/local_data/debug -type f -mtime +31 | xargs rm -rf")
>>
>> 2 0 * 1-12 * spawn("find /spider/local_data/log -type f -mtime +62 | xargs rm -rf")
>>
>>
>>
>> # Telegram Bot
>>
>> 0 * * * * run_cmd("total")
>>
>>
>>
>> # Check Public/Local IP
>>
>> 00,10,20,30,40,50 * * * * run_cmd("update_ip")
>>
>>
>>
>> # AutoUpdate USDB
>>
>> 0 1 * * 1,3,5 spawn("cd /tmp; wget -qN ftp://ftp.w1nr.net/usdbraw.gz; /spider/perl/create_usdb.pl <http://create_usdb.pl/> usdbraw.gz")
>>
>> 5 1 * * 1,3,5 run_cmd("load/usdb")
>>
>> 10 1 * * 1,3,5 spawn("rm /tmp/usdbraw.gz")
>>
>>
>>
>> # AutoUpdate Keps
>>
>> 0 2 * * 2,4,6 spawn("cd /tmp; wget -qN http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt; /spider/perl/convkeps.pl <http://convkeps.pl/> -p nasabare.txt")
>>
>> 5 2 * * 2,4,6 run_cmd("load/keps")
>>
>> 10 2 * * 2,4,6 spawn("rm /tmp/nasabare.txt")
>>
>>
>>
>> # AutoUpdate CTY.DAT
>>
>> 0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN http://www.country-files.com/cty/cty.dat")
>>
>> 0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN http://www.country-files.com/cty/wpxloc.raw")
>>
>> 2 3 * * 0,2,5 spawn("/spider/perl/create_prefix.pl <http://create_prefix.pl/>")
>>
>> 3 3 * * 0,2,5 run_cmd("load/prefix")
>>
>>
>>
>> # Blacklist. TOR & Others
>>
>> 30 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.torexit')
>>
>> 30 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.torrelay')
>>
>> 30 * * * * spawn('cd /spider/local_data; wget -qN http://www.dxspider.net/download/badip.global')
>>
>> 31 * * * * run_cmd('load/badip')
>>
>>
>>
>> Kin EA3CV
>>
>>
>>
>> De: Dxspider-support <dxspider-support-bounces at tobit.co.uk <mailto:dxspider-support-bounces at tobit.co.uk>> En nombre de Kelly Leavitt via Dxspider-support
>> Enviado el: miércoles, 8 de febrero de 2023 20:02
>> Para: dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk>
>> CC: Kelly Leavitt <kelly at catcorner.org <mailto:kelly at catcorner.org>>
>> Asunto: [Dxspider-support] Best practices
>>
>>
>>
>> Is there a concise document outlining best practices for keeping these clusters:
>>
>> up to date
>> secure
>> useful to the community
>> I found an older email with a sample crontab that kept the keps, country files and usdb up-to-date. Anything else?
>>
>>
>>
>> What about connecting and/or registering with RBN or other services? References to all of the commands? Any new commands that can be added?
>>
>>
>>
>> 73 de Kelly
>>
>> KE2L
>>
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230208/8bb984c0/attachment-0001.htm>
More information about the Dxspider-support
mailing list