Skip to content

Kachinonye/backup-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

💾 Backup Script — Automated Linux Backup Utility

Backup Script is a lightweight Bash utility that automates the backup of files and directories by creating compressed, timestamped archives.

The project was developed as a practical Linux administration tool to demonstrate Bash scripting, file management, archive creation, and backup automation.


✨ Features

  • 📦 Creates compressed .tar.gz backups
  • 🕒 Automatically appends timestamps to backup filenames
  • 📁 Supports backing up any directory
  • ⚡ Lightweight and easy to use
  • 🐧 Compatible with most Linux distributions
  • ⏰ Can be scheduled with cron for automated backups

📂 Project Structure

backup-script/
├── backup.sh
├── backups/
└── README.md

🚀 Installation

Clone the repository:

git clone https://github.com/Kachinonye/backup-script.git

Move into the project directory:

cd backup-script

Make the script executable:

chmod +x backup.sh

▶️ Usage

Back up a directory:

./backup.sh /path/to/folder

Example:

./backup.sh ~/Documents

The script creates a compressed archive similar to:

Documents_2026-06-29_143000.tar.gz

📄 Output

Backup archives are stored in the configured backup location with unique timestamped filenames, making it easy to retain multiple versions.


💼 Skills Demonstrated

This project showcases practical experience with:

  • Linux System Administration
  • Bash Shell Scripting
  • File System Management
  • Archive Creation (tar)
  • Compression (gzip)
  • Automation
  • Timestamp Generation
  • Shell Variables
  • Error Handling
  • Technical Documentation

🎯 Use Cases

Ideal for:

  • Linux System Administrators
  • Junior DevOps Engineers
  • Home Lab Users
  • Students learning Linux administration
  • Routine workstation backups

🔮 Planned Enhancements

Future releases may include:

  • Incremental backups
  • Backup retention policy
  • Automatic cleanup of old backups
  • Configuration file support
  • Restore mode
  • Email notifications
  • Compression level selection
  • Progress indicator
  • Logging and audit reports

👨‍💻 Author

Kachinonye Nmezi

Junior Linux Administrator | Bash Scripting & Automation Specialist

GitHub: https://github.com/Kachinonye


📜 License

Licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages