You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue/sql_refacor0120/数据导入定时任务.ini

13 lines
906 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# -------------------------- 数据导入定时任务(每日执行) --------------------------
# MySQL每日凌晨3点导入前一天的交易数据假设CSV文件每日凌晨2点生成
0 3 * * * /opt/stock_scripts/load_data_mysql.sh >> /var/log/stock_data_import.log 2>&1
# PostgreSQL每日凌晨3点10分导入错开MySQL执行时间避免数据库压力
10 3 * * * /opt/stock_scripts/copy_data_pg.sh >> /var/log/stock_data_import_pg.log 2>&1
# -------------------------- 分表扩展定时任务(每月执行) --------------------------
# MySQL每月最后一天凌晨2点创建下一个月分区
0 2 L * * /opt/stock_scripts/auto_add_mysql_partition.sh >> /var/log/auto_add_mysql_partition.log 2>&1
# PostgreSQL每月最后一天凌晨2点10分创建下一个月子表
10 2 L * * /opt/stock_scripts/auto_add_pg_subtable.sh >> /var/log/auto_add_pg_subtable.log 2>&1