Backup strategies
📖 Scenario: You are managing important files on your Linux computer. To keep your data safe, you want to create a simple backup script that copies files from one folder to another. This way, if something happens to your original files, you have a copy saved.
🎯 Goal: Build a small script that copies files from a source directory to a backup directory using Linux command line commands.
📋 What You'll Learn
Create a variable for the source directory path
Create a variable for the backup directory path
Use a command to copy all files from the source to the backup directory
Print a message confirming the backup is complete
💡 Why This Matters
🌍 Real World
Backing up files regularly is important to avoid data loss from accidents or hardware failure.
💼 Career
System administrators and IT support staff often write backup scripts to automate data protection tasks.
Progress0 / 4 steps