391 lines
15 KiB
YAML
391 lines
15 KiB
YAML
generated: '2026-10-28'
|
||
total: 112
|
||
automations:
|
||
- schedule: '* * * * *'
|
||
command: /opt/buryan-hub/scripts/swarm-watchdog.sh >> /var/log/swarm-watchdog.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: '*/5 * * * *'
|
||
command: python3 /opt/buryan-hub/scripts/direct-health-check.py >> /var/log/direct-health-check.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 2 * * *
|
||
command: /opt/buryan-hub/scripts/pg-backup-ct151.sh >> /var/log/buryan-hub/backups/cron-pg.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 3 * * *
|
||
command: /root/matrix-backups/backup-matrix.sh >> /var/log/buryan-hub/backups/cron-matrix.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 30 3 * * *
|
||
command: /root/buryan-infra/ops/backup.sh >> /root/buryan-infra/ops/backups/backup.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 4 * * *
|
||
command: /opt/buryan-hub/scripts/offsite-backup.sh >> /var/log/buryan-hub/backups/cron-offsite.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 5 * * 0
|
||
command: /root/weekly-backup-cleanup.sh >> /var/log/buryan-hub/backups/cron-cleanup.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 30 6 * * *
|
||
command: /opt/buryan-hub/scripts/vzdump-rotate.sh >> /var/log/buryan-hub/backups/cron-vzdump-rotate.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 9 * * *
|
||
command: /root/buryan-infra/ops/audit.sh >> /root/buryan-infra/ops/audit/audit-cron.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 20 * * 0
|
||
command: /root/buryan-infra/ops/weekly-report.sh >> /root/buryan-infra/ops/audit/weekly-report.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 */6 * * *
|
||
command: /root/buryan-infra/ops/scripts/version-watch.sh >> /root/buryan-infra/ops/audit/version-watch.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: '* * * * *'
|
||
command: /root/buryan-infra/ops/update-manager/update-runner.sh >/dev/null 2>&1
|
||
source: crontab
|
||
- schedule: 5 3 * * *
|
||
command: /root/buryan-infra/ops/update-manager/nightly-report.sh >> /root/buryan-infra/ops/update-manager/runner.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 6 * * 0
|
||
command: /opt/buryan-hub/scripts/verify-backups.sh >> /var/log/buryan-hub/backups/cron-verify.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: '*/5 * * * *'
|
||
command: /opt/buryan-hub/scripts/check-services.sh >/dev/null 2>&1
|
||
source: crontab
|
||
- schedule: 30 1 * * *
|
||
command: /opt/buryan-hub/scripts/photos-backup.sh >/dev/null 2>&1
|
||
source: crontab
|
||
- schedule: 0 4 * * 0
|
||
command: /root/buryan-infra/ops/vpn/vpn-backup-config.sh >> /var/log/buryan-hub/vpn-backup.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 0 6 1 * *
|
||
command: /opt/buryan-hub/scripts/restore-test.sh >> /var/log/buryan-hub/backups/cron-restore-test.log
|
||
2>&1
|
||
source: crontab
|
||
- schedule: 45 3 * * *
|
||
command: /usr/local/bin/backup-configs >> /var/log/backup-configs.log 2>&1
|
||
source: backup-configs
|
||
- schedule: 0 4 * * 0
|
||
command: /opt/buryan-hub/scripts/cleanup-leftovers.sh >> /var/log/buryan-hub/cleanup-leftovers.log
|
||
2>&1
|
||
source: buryan-cleanup
|
||
- schedule: 0 6 * * *
|
||
command: for id in $(pct list | tail -n +2 | awk '{print $1}'); do pct exec $id
|
||
-- bash -s < /opt/buryan-hub/scripts/fix-logs.sh >/dev/null 2>&1; done
|
||
source: buryan-log-hygiene
|
||
- schedule: '*/5 * * * *'
|
||
command: . /root/.buryan-monitor.env && /usr/bin/python3 /opt/buryan-hub/scripts/check_thin_pool.py
|
||
>> /var/log/thin-pool-monitor.log 2>&1
|
||
source: buryan-monitor
|
||
- schedule: 0 4 * * *
|
||
command: . /root/.buryan-monitor.env && /usr/bin/psql -h 192.168.1.151 -U buryan_monitor
|
||
-d buryan_monitoring -c 'SELECT cleanup_thin_pool_metrics();' >> /var/log/thin-p
|
||
source: buryan-monitor
|
||
- schedule: 0 * * * *
|
||
command: . /root/.buryan-monitor.env && python3 /opt/buryan-hub/scripts/check_disk.py
|
||
>> /var/log/buryan-monitor.log 2>&1
|
||
source: buryan-monitoring
|
||
- schedule: 30 8 * * *
|
||
command: . /root/.buryan-monitor.env && python3 /opt/buryan-hub/scripts/check_certs.py
|
||
>> /var/log/buryan-monitor.log 2>&1
|
||
source: buryan-monitoring
|
||
- schedule: '*/2 * * * *'
|
||
command: /usr/bin/python3 /opt/buryan-hub/scripts/export-service-metrics.py >/dev/null
|
||
2>&1
|
||
source: buryan-service-metrics
|
||
- schedule: 30 3 * * 0
|
||
command: /opt/buryan-hub/scripts/trim-containers.sh
|
||
source: buryan-trim
|
||
- schedule: 15 6 * * *
|
||
command: /usr/local/bin/docker-config-check >> /var/log/docker-config-check.log
|
||
2>&1
|
||
source: docker-config-check
|
||
- schedule: 30 3 * * 0
|
||
command: test -e /run/systemd/system || SERVICE_MODE=1 /usr/libexec/e2fsprogs/e2scrub_all_cron
|
||
source: e2scrub_all
|
||
- schedule: 10 3 * * *
|
||
command: test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r
|
||
source: e2scrub_all
|
||
- schedule: 30 2 * * *
|
||
command: /usr/bin/bash /opt/hub-core/backup.sh >> /var/log/hub-backup.log 2>&1
|
||
source: hub-backup
|
||
- schedule: 45 2 * * *
|
||
command: /usr/bin/bash /opt/hub-core/backup_bots.sh >> /var/log/hub-backup.log 2>&1
|
||
source: hub-backup-bots
|
||
- schedule: 5 3 * * *
|
||
command: /bin/bash /opt/hub-core/bots_verify.sh >> /var/log/hub-bots-verify.log
|
||
2>&1
|
||
source: hub-bots-verify
|
||
- schedule: 30 4 * * 0
|
||
command: /usr/bin/python3 /opt/hub-core/camera_discover.py >> /var/log/hub-cam-scan.log
|
||
2>&1
|
||
source: hub-cam-scan
|
||
- schedule: 15 4 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/library_sync.py
|
||
>> /var/log/hub-catalog.log 2>&1
|
||
source: hub-catalog
|
||
- schedule: '*/10 * * * *'
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/connectors.py
|
||
>> /var/log/hub-connectors.log 2>&1
|
||
source: hub-connectors
|
||
- schedule: '*/30 * * * *'
|
||
command: /opt/music-tools/venv/bin/python /opt/hub-core/device_ident.py >> /var/log/hub-devices.log
|
||
2>&1
|
||
source: hub-devices
|
||
- schedule: 0 9 * * *
|
||
command: cd /opt/hub-bots && HUB_ENV=/etc/hub-bots/bots.env /usr/bin/python3 digest.py
|
||
>> /var/log/hub-digest.log 2>&1
|
||
source: hub-digest
|
||
- schedule: 30 8 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/events_digest.py
|
||
>> /var/log/hub-digest.log 2>&1
|
||
source: hub-events-digest
|
||
- schedule: 0 23 * * *
|
||
command: /usr/bin/bash /opt/hub-core/export_all.sh >> /var/log/hub-export.log 2>&1
|
||
source: hub-export
|
||
- schedule: 45 4 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/content_graph.py
|
||
>> /var/log/hub-graph.log 2>&1
|
||
source: hub-graph
|
||
- schedule: 30 23 * * *
|
||
command: /usr/bin/curl -s --max-time 20 http://127.0.0.1:9120/snapshot > /var/log/hub-graph-history.log
|
||
2>&1
|
||
source: hub-graph-history
|
||
- schedule: 0 8 * * 1
|
||
command: /bin/bash -c 'set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3
|
||
/opt/hub-core/identity_audit.py' >> /var/log/hub-identity.log 2>&1
|
||
source: hub-identity
|
||
- schedule: 15 */3 * * *
|
||
command: cd /opt/hub-bots && HUB_ENV=/etc/hub-bots/bots.env /usr/bin/python3 reindex.py
|
||
>> /var/log/hub-index.log 2>&1
|
||
source: hub-index
|
||
- schedule: 30 7 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/inventory.py
|
||
>> /var/log/hub-inventory.log 2>&1
|
||
source: hub-inventory
|
||
- schedule: 45 3 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/linker.py
|
||
>> /var/log/hub-linker.log 2>&1
|
||
source: hub-linker
|
||
- schedule: 0 5 * * 0
|
||
command: /bin/bash /opt/hub-core/lxc_verify.sh >> /var/log/hub-lxc-verify.log 2>&1
|
||
source: hub-lxc-verify
|
||
- schedule: 20 3 * * *
|
||
command: /bin/bash /opt/hub-core/matrix_verify.sh >> /var/log/hub-matrix-backup.log
|
||
2>&1
|
||
source: hub-matrix-backup
|
||
- schedule: '*/30 * * * *'
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/media_hub.py
|
||
>> /var/log/hub-media.log 2>&1
|
||
source: hub-media
|
||
- schedule: 0 9 * * 1
|
||
command: set -a; . /etc/hub-core/connectors.env; . /etc/hub-bots/bots.env; . /etc/hub-bots/dm.env;
|
||
set +a; NOTIFY_TOKEN="$MEDIA_TOKEN" NOTIFY_ROOM="$MEDIA" /usr/bin/pyth
|
||
source: hub-media-digest
|
||
- schedule: 0 6 * * 0
|
||
command: /bin/bash /opt/hub-core/offsite_verify.sh >> /var/log/hub-offsite-verify.log
|
||
2>&1
|
||
source: hub-offsite-verify
|
||
- schedule: 40 2 * * *
|
||
command: /bin/bash /opt/hub-core/pg_verify_cron.sh >> /var/log/hub-pg-verify.log
|
||
2>&1
|
||
source: hub-pg-verify
|
||
- schedule: 30 3 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/reconcile.py
|
||
>> /var/log/hub-reconcile.log 2>&1
|
||
source: hub-reconcile
|
||
- schedule: 0 19 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/resume.py
|
||
>> /var/log/hub-resume.log 2>&1
|
||
source: hub-resume
|
||
- schedule: '*/15 * * * *'
|
||
command: set -a; . /etc/hub-core/telegram.env; set +a; [ -n "$TG_API_ID" ] && /usr/bin/python3
|
||
/opt/hub-core/telegram_userbot.py >> /var/log/hub-telegram.log 2>&1
|
||
source: hub-telegram
|
||
- schedule: 30 9 * * 1
|
||
command: cd /opt/hub-bots && HUB_ENV=/etc/hub-bots/bots.env /usr/bin/python3 weekly.py
|
||
>> /var/log/hub-weekly.log 2>&1
|
||
source: hub-weekly
|
||
- schedule: 0 20 * * 0
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /usr/bin/python3 /opt/hub-core/weekly.py
|
||
>> /var/log/hub-weekly-core.log 2>&1
|
||
source: hub-weekly-core
|
||
- schedule: 30 5 * * *
|
||
command: set -a; . /etc/hub-core/connectors.env; set +a; /opt/music-tools/venv/bin/python
|
||
/opt/hub-core/sync_users.py 3 >> /var/log/hub-yandex-sync.log 2>&1
|
||
source: hub-yandex-music
|
||
- schedule: 0 1 * * *
|
||
command: /usr/local/bin/lxc-backup.sh 108 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 30 1 * * *
|
||
command: /usr/local/bin/lxc-backup.sh 140 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 2 * * *
|
||
command: /usr/local/bin/lxc-backup.sh 155 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 30 2 * * *
|
||
command: /usr/local/bin/lxc-backup.sh 115 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 3 */2 * *
|
||
command: /usr/local/bin/lxc-backup.sh 110 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 30 3 */2 * *
|
||
command: /usr/local/bin/lxc-backup.sh 114 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 4 */2 * *
|
||
command: /usr/local/bin/lxc-backup.sh 109 daily >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 4 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 105 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 30 4 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 113 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 5 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 139 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 30 5 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 201 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 0 5 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 104 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: 15 5 * * 0
|
||
command: /usr/local/bin/lxc-backup.sh 111 weekly >> /var/log/lxc-backup.log 2>&1
|
||
source: lxc-backups
|
||
- schedule: '*/5 * * * *'
|
||
command: /opt/music-tools/venv/bin/python /opt/hub-core/mesh_watch.py >> /var/log/mesh-watch.log
|
||
2>&1
|
||
source: mesh-watch
|
||
- schedule: 30 3 * * *
|
||
command: /usr/local/bin/backup-n8n >> /var/log/n8n-backup.log 2>&1
|
||
source: n8n-backup
|
||
- schedule: 24 0 1-7 * *
|
||
command: if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/trim ]; then /usr/lib/zfs-linux/trim;
|
||
fi
|
||
source: zfsutils-linux
|
||
- schedule: 24 0 8-14 * *
|
||
command: if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ]; then /usr/lib/zfs-linux/scrub;
|
||
fi
|
||
source: zfsutils-linux
|
||
- schedule: systemd 4min
|
||
command: systemd unit hub-mesh.timer
|
||
source: systemd
|
||
- schedule: systemd 4min
|
||
command: systemd unit hub-inbox.timer
|
||
source: systemd
|
||
- schedule: systemd 5min
|
||
command: systemd unit hub-tg-ingest.timer
|
||
source: systemd
|
||
- schedule: systemd 5min
|
||
command: systemd unit hub-selfheal.timer
|
||
source: systemd
|
||
- schedule: systemd 14min
|
||
command: systemd unit hub-agents.timer
|
||
source: systemd
|
||
- schedule: systemd 14min
|
||
command: systemd unit hub-brain.timer
|
||
source: systemd
|
||
- schedule: systemd 14min
|
||
command: systemd unit hub-storage-metrics.timer
|
||
source: systemd
|
||
- schedule: systemd 1h
|
||
command: systemd unit hub-chief.timer
|
||
source: systemd
|
||
- schedule: systemd 1h
|
||
command: systemd unit hub-digest.timer
|
||
source: systemd
|
||
- schedule: systemd 14h
|
||
command: systemd unit hub-pre-prune.timer
|
||
source: systemd
|
||
- schedule: systemd 16h
|
||
command: systemd unit hub-db-dumps.timer
|
||
source: systemd
|
||
- schedule: systemd 16h
|
||
command: systemd unit hub-renovate.timer
|
||
source: systemd
|
||
- schedule: systemd 17h
|
||
command: systemd unit hub-archive-copy.timer
|
||
source: systemd
|
||
- schedule: systemd 17h
|
||
command: systemd unit hub-cert-sync.timer
|
||
source: systemd
|
||
- schedule: systemd 17h
|
||
command: systemd unit hub-vps-backup.timer
|
||
source: systemd
|
||
- schedule: systemd 17h
|
||
command: systemd unit hub-actions.timer
|
||
source: systemd
|
||
- schedule: systemd 17h
|
||
command: systemd unit hub-dl-cleanup.timer
|
||
source: systemd
|
||
- schedule: systemd 18h
|
||
command: systemd unit hub-jf-collections.timer
|
||
source: systemd
|
||
- schedule: systemd 18h
|
||
command: systemd unit hub-updates.timer
|
||
source: systemd
|
||
- schedule: systemd 19h
|
||
command: systemd unit hub-search-index.timer
|
||
source: systemd
|
||
- schedule: systemd 21h
|
||
command: systemd unit hub-nightly-check.timer
|
||
source: systemd
|
||
- schedule: systemd 21h
|
||
command: systemd unit hub-goals.timer
|
||
source: systemd
|
||
- schedule: systemd 22h
|
||
command: systemd unit hub-snap-clean.timer
|
||
source: systemd
|
||
- schedule: systemd 22h
|
||
command: systemd unit hub-snapshot.timer
|
||
source: systemd
|
||
- schedule: systemd 22h
|
||
command: systemd unit hub-finance.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-rag.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-ct-cleanup.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-drill.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-second-contour.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-integrity.timer
|
||
source: systemd
|
||
- schedule: systemd 3
|
||
command: systemd unit hub-weekly.timer
|
||
source: systemd
|
||
- schedule: systemd 4
|
||
command: systemd unit hub-media-maint.timer
|
||
source: systemd
|
||
- schedule: systemd 5
|
||
command: systemd unit hub-restore-drill.timer
|
||
source: systemd
|
||
- schedule: каждые 1800с
|
||
command: /usr/local/bin/backup-heartbeat.sh
|
||
source: hermes/backup-heartbeat
|
||
- schedule: каждые 21600с
|
||
command: /opt/music-tools/venv/bin/python /opt/hub-core/check_updates.py
|
||
source: hermes/updates-check
|
||
- schedule: каждые 3600с
|
||
command: df -h / /mnt/media /mnt/archive | tail -3
|
||
source: hermes/disk-trend
|
||
- schedule: каждые 3600с
|
||
command: 'curl -s --max-time 20 http://127.0.0.1:9120/status.json | /opt/music-tools/venv/bin/python
|
||
-c "import json,sys; d=json.load(sys.stdin); bad=[s[''name''] for s in '
|
||
source: hermes/verify-services
|