Medium
Automate Directory Backup with Bash
Create a shell script to compress and timestamp a specific directory for backup purposes.
📝 प्रॉम्ट सामग्री
Write a Bash script that takes a directory path as an argument. The script should create a compressed tar.gz archive of that directory, append the current date (YYYY-MM-DD) to the filename, and save it to a predefined backup folder. Include error handling to check if the directory exists.