Schedule It

Write cron expressions for automated backup and log rotation jobs.

A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: The ops team needs two automated jobs. The scripts already exist — you just need to schedule them.

Your tasks:

  1. Add a crontab entry to run /opt/scripts/backup.sh every day at 3:30 AM
  2. Add a crontab entry to run /opt/scripts/rotate_logs.sh every Sunday at midnight
  3. Save your crontab to /tmp/mycrontab using: crontab -l > /tmp/mycrontab

Cron format: minute hour day-of-month month day-of-week command

Commands to learn: crontab -e, crontab -l, cron expression syntax

Run check when done.