Skip to content

This Python script automates the backup of files and directories from a target folder into a compressed `.tar.gz` archive. It's designed for Linux environments such as Kali and is ideal for small businesses, schools, or home labs.

License

Notifications You must be signed in to change notification settings

drashadm/linux-backup-tool-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Backup Tool

A simple, secure, and modular backup script tailored for Linux environments such as Kali and is ideal for small businesses, schools, or home labs.


Project Overview

This project simulates a real-world Linux backup automation process:

  • Archives critical files into timestamped ZIPs
  • Excludes unwanted file types (e.g. logs, temp files)
  • Logs every backup event into a structured .csv
  • Comes preloaded with sample data and GitHub Actions support


How to Test It Locally (Kali Linux)

# Make sure test folders exist
mkdir -p /home/kali/documents_to_backup
mkdir -p /home/kali/backups

# Add sample file to backup
echo "This is a test config file" > /home/kali/documents_to_backup/test.conf

# Run the backup tool
python3 linux_backup.py --source /home/kali/documents_to_backup --target /home/kali/backups

Output:

  • backup_YYYYMMDD_HHMMSS.zip in /home/kali/backups
  • backup_log.csv showing status of each backup

GitHub Actions: CI Automation

The workflow auto-runs the script when you push code to this repo. Located in .github/workflows/ci.yml.

You can edit it to:

  • Validate backup logic
  • Simulate different scenarios
  • Add test coverage (coming soon)

Contact

This project is maintained by drashadm. For feedback, collaboration, or contract work — feel free to connect!


Disclaimer

This tool is built for educational and demo purposes. Always test your backup setup before relying on it for production data.

“Security is not a product, but a process.” — Bruce Schneier

About

This Python script automates the backup of files and directories from a target folder into a compressed `.tar.gz` archive. It's designed for Linux environments such as Kali and is ideal for small businesses, schools, or home labs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages