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 11 Aug 2026
This lesson is for signed-in learners
Create an account to subscribe and record your learning progress.
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