Как мы устали настраивать Crontab и сделали свой cron-manager

В какой-то момент cron-заданий становится много, появляются сложные зависимости между скриптами, когда результат выполнение одного важен для начала работы другого. Балансировать такую историю доводится сис.админу, DevOps'у или разработчику. С этого и начинается наш рассказ.

https://habr.com/ru/articles/1003006/

#cron #crontab #cronjob #cronjob #продукт #продуктовая_разработка

Как мы устали настраивать Crontab и сделали свой cron-manager

Все мы привыкли к настройке cron-заданий в терминале: ssh user@your_server_ip crontab -e Alt + / (пролистать в конец файла в nano) 30 2 * * * /usr/bin/python3 /home/user/my_script.py (добавить еще...

Хабр

Selfhosting is nice, and it comes with a price to pay.

For me ? It's time, and I have plenty to give away, given that's my passion.

For my SO ? The unbearable noise of rattling disk needles to write on their very precious platters (especially now, thank you AI bullcrap)

The solution ? A nice cron-based compromise, and I feel like someone could get inspired by this :)

# Stop qbittorrent - weekday evenings at 17:00 Mon-Fri
0 17 * * 1-5 cd /opt/services/qbittorrent && docker compose stop

# Stop qbittorrent - weekends at 8:00 Sat-Sun
0 8 * * 6,0 cd /opt/services/qbittorrent && docker compose stop

# Start qbittorrent - every day at 23:00
0 23 * * * cd /opt/services/qbittorrent && docker compose start

#selfhosting #selfhosted #homelab #torrent #qbittorrent #harddrive #disk #nas #so #ai #cron #crontab #scheduling #linux #opensource #docker #dockercompose

I recently had to do a complete wipe and re-install of my #wpsd #hamradio #hotspot.
Most of the settings were retained by wpsd's backup/restore functions, but my #crontab had to be recreated from scratch.

Luckily I had blogged some of it last year:
https://blog.k3can.us/posts/2025/mar/2025-03-13_automatinganam/
#amateurradio

Automating an Amateur Radio Hotspot - k3can blog

Sometimes the only emails I see for days are the daily rsnapshot crontab output emails.

I'm totally ok with this.

In fact, this is preferred.

#Linux #RunBSD #crontab

@pfr As you wish  

#crontab #FreeBSD #NetBSD

Show me your #crontab

Yeah meine zweite Festplatte ist heute angekommen !

/dev/sdb 983379700 400782140 5325 43% /mnt/data

/dev/sdc1 983378676 307661060 6256 33% /mnt/data2

Jetzt nur noch mit einem #rsync job täglich #crontab alles von einer Platte auf die andere Platte schaufeln und ich habe wenigstens schonmal ein bisschen #Ausfallsicherheit #backup #Datensicherung für meinen #HomeServer realisiert.

Parallel mache mit "duplicati" ein verschlüsseltes Backup des Betriebssystems in mein #ondrive da habe ich noch 1 TB, warum nicht nutzen wenn man es eh schon hat.

@gary_alderson Indeed. Remember to enable the actualize script through #crontab: https://freshrss.github.io/FreshRSS/en/admins/08_FeedUpdates.html
Setting Up Automatic Feed Updating · FreshRSS

Documentation center

🔍 / #software / #library / #python

#Crontab module for reading and writing crontab files and accessing the system #cron automatically and simply using a direct API.

🐱🔗 https://laravista.altervista.org/CatLink/links/325

#catlink #SoftwareLibrary #SoftwareLibraryPython #PythonCrontab

Python Crontab

Crontab module for reading and writing crontab files and accessing the system cron automatically and simply using a direct API.

thank you https://crontab.guru for saving me 15mins of head-scratching.

#crontab

Crontab.guru - The cron schedule expression generator

An easy to use editor for crontab schedules.