Bird
0
0

You want to automate a backup on Raspberry Pi every night at 2 AM and email the log. Which approach works best?

hard🚀 Application Q8 of 15
Raspberry Pi - Automation and Scheduling
You want to automate a backup on Raspberry Pi every night at 2 AM and email the log. Which approach works best?
ASchedule a cron job at 2 AM that runs a script to backup and email the log
BManually run the backup script each morning
CUse a Python script that runs only when the Raspberry Pi boots
DConnect a USB drive and copy files manually
Step-by-Step Solution
Solution:
  1. Step 1: Identify automation needs and choose best method

    Backup at 2 AM and email log requires scheduled task and email sending. Cron job running a script at 2 AM fits perfectly.
  2. Final Answer:

    Schedule a cron job at 2 AM that runs a script to backup and email the log -> Option A
  3. Quick Check:

    Scheduled cron job for backup and email = automation [OK]
Quick Trick: Use cron to schedule scripts for automated tasks [OK]
Common Mistakes:
MISTAKES
  • Relying on manual runs defeats automation
  • Running script only at boot misses daily schedule
  • Manual copying is not automated

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes