(Practice Purpose only)
This project contains a shell script backup.sh that automates the process of backing up files modified within the past 24
hours from a target directory to a destination directory.
- Uses timestamp to detect modified files
- Archive them into a timestamped
.tar.gzfile - Uses arrays and conditionals
- Can be run manually or automated using cron
final-backup/
|--- backup.sh
|--- README.sh
|--- .gitignore
|--- important-documents/
|--- backup-<timestamp>.tar.gz
./backup.sh <target_directory> <destination_directory>
./backup.sh important-documents .##Author
Tushar Kumar