Server Administration
Run Scheduled Jobs With systemd Timers
systemd timers run scheduled jobs with a .timer/.service pair: OnCalendar sets the schedule, systemctl list-timers shows it, journalctl keeps the logs, and Persistent=true catches…
Server Administration
systemd timers run scheduled jobs with a .timer/.service pair: OnCalendar sets the schedule, systemctl list-timers shows it, journalctl keeps the logs, and Persistent=true catches…
Server Administration
Back up a server with tar and gzip: one dated, compressed archive of the site's files, verified with -tzf, restore-tested with -xzf, and copied…
Server Administration
Deploy a site with rsync and every update becomes one repeatable command that copies only what changed. This tutorial covers -avz over SSH, --exclude…
Server Administration
Add a swap file to a small server and a memory spike stops killing your processes. fallocate reserves the file, mkswap formats it, swapon…
Programming
ob_start catches everything a script prints, so a template that echoes becomes a function that returns. That one trick powers shortcodes and page caches,…
Database Administration
One DATETIME, three presentations: the DATE_FORMAT specifiers that matter (minutes are %i, never %m), DATEDIFF and DATE_ADD arithmetic, a monthly report, and when the…