A script you can run twice
Write a scheduled script whose second run breaks nothing: describe the state you want rather than the change, check before acting, and exit non-zero only when something has actually failed.
22 minutesTechnical content last reviewed on 3 Aug 2026
This lesson is for signed-in learners
Create an account to subscribe and record your learning progress.
What this lesson builds
- Writing a scheduled script you can rely on
- Running a service under systemd, from first start to automatic recovery
End of the course
Backups and restores
Back up a database and files, apply retention, and above all verify that a restore works before you need it.
Continue to the next course