This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define backup destination (replace with your external drive path) | |
BACKUP_DEST="/path/to/backup_drive" | |
LOG_FILE="/path/to/backup.log" | |
# Clear log file | |
echo "Starting backup process at $(date)" > "$LOG_FILE" | |
echo "" >> "$LOG_FILE" |