Problem Statement
Describe how you would automate a daily file backup using cron.
Explanation
First, write a shell script that copies important files to a backup directory with a timestamp.
Then, schedule it in crontab to run every night using a 0 2 * * * entry for 2 AM backups.
Code Solution
SolutionRead Only
0 2 * * * /home/admin/backup.sh
Practice Sets
This question appears in the following practice sets: