journalctl -t CRON --since "today"
journalctl -t CRON --since "30 minutes ago"
journalctl -t CRON --since "2023-01-25"
0 4 * * * /home/user/make-backup.sh 2>&1 | logger -t backups
journalctl -t backups --since "today"
journalctl -t backups -f
0 4 * * * /home/user/make-backup.sh > /tmp/backups.log 2>&1
0 4 * * * /home/user/make-backup.sh 2>&1 | ts >> /tmp/backups.log
https://blog.healthchecks.io/2023/01/using-logs-to-troubleshoot-failing-cron-jobs/
Healthchecks.io
Using Logs to Troubleshoot Failing Cron Jobs
Let's say you have a noscript that works when run in an interactive session, but does not produce expected results when run from cron. What could be the problem? Some potential culprits include:
The cron daemon does not see the new job. You added the job…
The cron daemon does not see the new job. You added the job…
Byobu Multiplexer
Shift-F2: Create a horizontal split.
Ctrl-F2: Create a vertical split.
Shift-Left/Right/Up/Down: Move focus among splits.
Shift-Alt-Left/Right/Up/Down: Resize a split.
Ctrl-F5: Reconnect ssh/gpg/dbus sockets.
Shift-F6: Detach session and do not logout.
Shift-F11: Zoom into a split, zoom out of a split.
Alt-PageUp/PageDown: Enter and move through scrollback.
👍1
docker buildx cloud
docker buildx create --driver cloud <ORG>/<BUILDER_NAME>
👍1
mc find local/bucket --older-than 3d --exec "mc rm {}"
mc find local/bucket --larger 5m --older-than 1d --exec "mc rm {}"https://docs.percona.com/percona-toolkit/pt-heartbeat.html
CREATE USER 'exporter'@'%' IDENTIFIED BY 'XXXXXXXX' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'%';
Percona
Percona Toolkit Documentation
Command-line tools for common MySQL database administration tasks.