PDF Version Available

This document is also available in PDF format: backups.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

Link: https://aholdengouveia.name/LinuxAdmin/labexcercises/backups.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Ticket

Ticket: ACME-4518
Requested by: Management
Systems: Both report servers

Background

After last week's incident, management wants proof that Acme Corp can recover. A backup no one has tested isn't a backup. You will be working on the two servers you set up in the Server Setup lab: your Red Hat based server and your second server.

Learning Outcomes

By the end of this lab, you will be able to:

Requirements

  1. Write a backup script using tar that backs up /etc, users' home directories, and your change log, compressed, with the date in the filename.
  2. Keep only the last 7 backups, deleting older ones automatically.
  3. Copy each backup to your other server, so it isn't stored only on the machine it came from.
  4. Schedule your backup script with cron.
  5. Restore drill: delete something important, such as a config file or a user's home directory, then restore it from your backup. Time how long it takes.
  6. Write a post mortem for either your restore drill or the B0rk incident from the Scripting for Server Security Part 2 lab. Use the sample report from Google (linked under Resources) as your template.

Acceptance Criteria

Deliverables

Audience: a teammate who has to restore a server during an emergency. Assume technical knowledge but not expertise. Screenshots are helpful to go with your descriptions.

Make sure your deliverables include documents for BOTH servers, clearly labeled with what the document is and which server it's for.

Resources

References, a video, a PowerPoint and some notes are available at my website Link: https://www.aholdengouveia.name/LinuxAdmin/backups.html

My video on how to use tar Link: https://www.youtube.com/watch?v=x0EK6PmKRCU

Sample post mortem report from Google Link: https://web.archive.org/web/20220724194136/https://developers.googleblog.com/2013/05/google-api-infrastructure-outage_3.html