A simple Bash script to automate the backup of your important files and directories. The script compresses specified files into a timestamped archive and stores them in a designated backup directory.
- Automates backups of specified files or directories.
- Creates compressed
.tar.gzarchives with timestamps. - Customizable source and destination directories.
- Bash (pre-installed on most Linux systems).
tarutility (pre-installed on most Linux systems).
- Clone this repository:
git clone https://github.com/yourusername/backup-script.git cd backup-script
Edit the script to set your desired source and backup directories:
BACKUP_DIR="$HOME/backups"
SOURCE_DIR="$HOME/Documents"