VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
Medium

Automate Directory Backup with Bash

#bash #scripting #linux #automation

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.