跳转到内容

User:Liangent-bot/crontab/liangent-php

维基百科,自由的百科全书
# current size: 9619 (刷新); sync: ~/sync-crontab.sh

#

# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command

PATH=/data/project/liangent-shared/bin/crontab:/usr/local/bin:/usr/bin:/bin

# 这两个功能可能有用户在等,执行频繁一些

1-51/10 * * * * jsub -once -N php_translateVariants_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/translateVariants.php --wiki=zhwiki~sysop~wgDisabledVariants= --lang=zh --ns=8 --delete --table=ns8 --init=User:Liangent-bot/message/ns8-noteta-it

# 填充引用,每次执行这3个尽量按顺序运行,这个脚本是正则抓的

5-55/10 * * * * jsub -once -N php_populateCite_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/populateCite.php --category=包含未完成DOI引用來源的頁面 --template='cite\ doi' --wiki=zhwiki --source='http://tools-webproxy-01/citations/doibot.php?doi=\$1' --wikibase
7-57/10 * * * * jsub -once -N php_populateCite_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/populateCite.php --category=包含未完成PMID引用來源的頁面 --template='cite\ pmid' --wiki=zhwiki --source='http://tools-webproxy-01/citations/doibot.php?pmid=\$1' --wikibase
9-59/10 * * * * jsub -once -N php_populateCite_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/populateCite.php --template='cite\ doi' --wiki=zhwiki --source='http://tools-webproxy-01/citations/doibot.php?doi=\$1' --wikibase

# 内部链接助手,偶数小时正常执行,奇数小时以包含模式执行以清理<includeonly>里面的东西

3 */2 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=有蓝链却未移除内部链接助手模板的页面
3 1-23/2 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=有蓝链却未移除内部链接助手模板的页面 --inclusion

# 有的页面内部链接助手过多以至于超出模板限制,导致分类不起作用,清理一下试试看

15 0 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=有过多高开销解析器函数调用的页面
15 12 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=有过多高开销解析器函数调用的页面 --inclusion

# 首页模块等,这个应该不会有<includeonly>的内容

43 */4 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki~sysop --page=User:Liangent-adminbot/CleanupILH-page

# 随机和首页清理共用43分钟,其中1/3用来清理<includeonly>

43 1-23/2 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --random-count=120 --random-ns=0:1:3:4:5:6:7:8:9:10:11:12:13:14:15:100:101:829
43 2-22/4 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --random-count=120 --random-ns=0:1:3:4:5:6:7:8:9:10:11:12:13:14:15:100:101:829 --inclusion

# 间隔着跑小规模的随机,inclusion和上面反过来

13-53/20 1-23/2 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --random-count=60 --random-ns=0:1:3:4:5:6:7:8:9:10:11:12:13:14:15:100:101:829 --inclusion
13-53/20 2-22/4 * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --random-count=60 --random-ns=0:1:3:4:5:6:7:8:9:10:11:12:13:14:15:100:101:829

# 最多编辑一次,放哪都行,希望尽快反映用户被封禁状态

30 * * * * jsub -once -N php_checkNewusermessageSignatures_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/checkNewusermessageSignatures.php --wiki=zhwiki~sysop --maxlag=30 --page=MediaWiki:Newusermessage-signatures

# 这个可能运行较久,放哪都行。下次要不常执行的时间从这里取剩下的小时

0 0,12 * * * jsub -once -N php_updateSpecialPages_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/updateSpecialPages.php --wiki=zhwiki --only=TemplateDuplicateArguments

# Alan li的鱼儿,没人急着看,但跟紧一些防止编辑冲突?

10 * * * * jsub -once -N php_interwikiFromCategorySort_wikibase_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/interwikiFromCategorySort_wikibase.php --wiki=zhwiki --category=FishBaseLatinName --sites=enwiki:cawiki:eswiki:frwiki:ptwiki:nlwiki:viwiki:svwiki:cebwiki:warwiki:commonswiki --wikibase-merge

# 清理调用重复模板参数的页面

20 */2 * * * jsub -once -N php_cleanupDuplicateArgs_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupDuplicateArgs.php --wiki=zhwiki --links=category --links-page=Category:调用重复模板参数的页面 --links-latest=CleanupDuplicateArgsV1 --bot
20 1-23/2 * * * jsub -once -N php_cleanupDuplicateArgs_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupDuplicateArgs.php --wiki=zhwiki --links=category --links-page=Category:调用重复模板参数的页面 --links-latest=CleanupDuplicateArgsV1i --bot --inclusion

# 清理含有日期错误的引用的页面

50 */2 * * * jsub -once -N php_cleanupCiteDates_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteDates.php --wiki=zhwiki --links=category --links-page=Category:引文格式1错误:日期 --links-latest=CleanupCiteDatesV23 --bot
50 1-23/2 * * * jsub -once -N php_cleanupCiteDates_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteDates.php --wiki=zhwiki --links=category --links-page=Category:引文格式1错误:日期 --links-latest=CleanupCiteDatesV23i --bot --inclusion

# 清理含有将维基内链嵌入网址标题的引用的页面

23 */2 * * * jsub -once -N php_cleanupCiteScriptTitles_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteScriptTitles.php --wiki=zhwiki --links=category --links-page=Category:引文格式1错误:网址-维基内链冲突 --links-latest=CleanupCiteScriptTitlesV2 --bot
23 1-23/2 * * * jsub -once -N php_cleanupCiteScriptTitles_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteScriptTitles.php --wiki=zhwiki --links=category --links-page=Category:引文格式1错误:网址-维基内链冲突 --links-latest=CleanupCiteScriptTitlesV2i --bot --inclusion

# 清理含有未知参数的引用的页面(YMD)

40 */2 * * * jsub -once -N php_cleanupCiteYMD_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteYMD.php --wiki=zhwiki --links=category --links-page=Category:含有未知参数的引用的页面 --links-latest=CleanupCiteYMDV2 --bot
40 1-23/2 * * * jsub -once -N php_cleanupCiteYMD_zhwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupCiteYMD.php --wiki=zhwiki --links=category --links-page=Category:含有未知参数的引用的页面 --links-latest=CleanupCiteYMDV2i --bot --inclusion

# 监视最近更改

0/10 * * * * jstart $HOME/mw/startLabsDispatchRC.sh

# arwiki的没多少事,可以随便排

8 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --category='صفحات يوجد بها استدعاءات دوال محلل كثيرة ومكلفة' # 有蓝链却未移除内部链接助手模板的页面
18 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --category='صفحات يوجد بها استدعاءات دوال محلل كثيرة ومكلفة' --inclusion
38 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --category='صفحات بها وصلات إنترويكي للإزالة' # 页面中有太多耗费的语法功能呼叫
48 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --category='صفحات بها وصلات إنترويكي للإزالة' --inclusion
28 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --random-count=60
58 * * * * jsub -once -N php_cleanupILH_DOM_arwiki -mem 2g -l release=trusty php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=arwiki --random-count=60 --inclusion

# 备份SQL数据

0 0 * * * jsub -once -N sql_dump -mem 2g $HOME/sql/dodump.sh

#