AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

PostgreSQL and MySQL: point-in-time recovery and the delete with no WHERE

See how a full backup plus a log of changes can restore a database to any minute, work out how much data and time a failure costs under different backup plans, and recover from an accidental delete.

Every database needs a backup, and every backup plan answers two questions: how much recent data can we afford to lose, and how long can we be down? The tools to meet them, a base backup plus a continuous log of changes, let you restore to a chosen minute.

This course models backups and logs with small Python programs you can run in your browser. Python stands in for the database: the dictionary and list are not real storage, but the restore logic is the same one real systems use. Check your database's documentation for backup, log archiving and point-in-time recovery commands, and test them on a copy. All data is made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No database administration experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 20 min Free sample 🔒 AiTeky Pass A backup plus a log Restore a database from a nightly backup, then replay a log of changes to any chosen minute, and see what a mistake looks like in the log.
  2. 02 20 min 🔒 AiTeky Pass How much loss, how long down Work out the most data you can lose and the time a restore takes under different backup plans, and see how archiving the log shrinks one while lengthening the other.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: the delete with no WHERE A DELETE with no WHERE removed 600,000 order rows at 14:07 and was noticed 40 minutes later. Count what each recovery option loses, compare them by effort and risk, choose, and write the note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in