Skip to content

Repository files navigation

Windows Backup System

A professional-grade, event-driven backup infrastructure for Windows. This system leverages Duplicati for deduplicated/encrypted local storage and Rclone for high-performance cloud mirroring.

License: MIT Platform: Windows


🚀 Key Features

  • 3-2-1 Strategy: 3 copies (Source, Local, Cloud), 2 media, 1 offsite.
  • Native C++ Manager: A high-performance interactive CLI (BackupManager.exe) for total control.
  • Multi-Drive Redundancy: Supports multiple local hard drives for localized safety.
  • Event-Driven: Automatically triggers backups during Windows Shutdown via GPO.
  • USB Air-Gap: Intelligent background sync when authorized USB drives are connected.
  • Data Recovery: Interactive point-in-time restoration suite.
  • Connectivity Aware: Real-time monitoring of backup drive status (Online/Offline).

🎮 The Management CLI (BackupManager.exe)

The central dashboard for your backup system. Located in bin/BackupManager.exe.

Available Functions:

  1. [STATUS]: View system health, last backup dates, and drive connectivity.
  2. [ADD/REMOVE]: Manage your source folders and backup destinations.
  3. [CLOUD]: Configure your Rclone cloud remotes (OneDrive, Google Drive, etc.).
  4. [PASS]: Securely set your encryption passphrase for headless backups.
  5. [USB]: Authorize external drives for automatic background syncing.
  6. [RUN]: Manually trigger the full backup pipeline.
  7. [RESTORE]: Interactive wizard to recover files from any backup version.
  8. [UNINSTALL]: Safely remove the system hooks and tasks.

🛠️ Quick Start

You don't need to manually install anything. Just follow these simple steps:

  1. Run the Manager: Open bin/BackupManager.exe. It will automatically offer to set up the system if it's your first time.
  2. Add Sources: Use Option 2 to select the folders you want to protect.
  3. Set Destinations: Use Option 3 to add your local hard drive paths.
  4. Set Cloud: Use Option 5 to link your OneDrive or Google Drive.
  5. Set Password: Use Option 6 to create your encryption passphrase (this enables automated backups).
  6. Setup USB: Plug in your external drive, use Option 7 to authorize it, and Option 3 to add it as a destination.
  7. GO!: Choose Option 8 to start your first backup immediately!

📋 Requirements

  • Duplicati 2 & Rclone installed.
  • PowerShell 5.1+ (Windows Default).
  • Admin privileges (required once for the automated bootstrap).

📊 Technical Architecture

  • Orchestrator: src/ShutdownBackup.ps1 - The engine that runs during shutdown.
  • State Management: C:\ProgramData\BackupSystem\state.json - Authoritative state file.
  • USB Listener: src/UsbListener.ps1 - Background WMI service for removable media.
  • Recovery Helper: src/RestoreBackup.ps1 - Backend for versioned restoration.

📜 License & Disclaimer

License: This project is licensed under the MIT License.

⚠️ DISCLAIMER: This software is provided "as is", without warranty of any kind, express or implied. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software. USE AT YOUR OWN RISK. THE AUTHOR IS NOT RESPONSIBLE FOR ANY DATA LOSS.

About

The complete 3-2-1 backup solution for Windows power users.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages