Skip to content

About

Automated Backup Script for Linux

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🗂️ BASH Automated Backup Script

Topology

A simple Bash script to automatically back up any directory (e.g., Documents) into a compressed .tar.gz file with a timestamp (date & time) in the filename.

✨ Features

  • Creates a unique backup file every time (no overwrites).
  • Automatically creates the backup directory if it doesn't exist.
  • Uses maximum compression (tar -czf).

🛠️ Commands Used

  • tar – to compress the directory.
  • mkdir – to create the backup folder.
  • date – to generate a unique timestamp.

🚀 How to Use

chmod +x backup.sh
./backup.sh

The Spcript

📁 Output Example

BACKUPS/
└── backup_2026-06-12_17-39-12.tar.gz

📌 Note

You can change the SOURCE variable inside the script to back up any folder you want (e.g., Pictures, Projects, Videos).

🤖 Created by 0x9z

About

Automated Backup Script for Linux

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages