UnraidConfigGuardian

UnraidConfigGuardian

Docker app from IBRACORP's Repository

Overview

Automatically generate comprehensive disaster recovery documentation for your Unraid setup. Creates docker-compose files, restoration scripts, and system backups for complete server recreation in under 30 minutes.

Unraid Config Guardian automatically generates comprehensive disaster recovery documentation for your Unraid setup.

Features:

  • Complete server recreation in under 30 minutes
  • Docker-compose generation from running containers
  • Automated restoration scripts with security-conscious data masking
  • Web-based interface for easy management
  • Scheduled automated backups

Install the dockersocket container from the apps page. You will need to add a variable to the container called IMAGES and give it a value of 1. The docker socket proxy will return a 403 without this.

Access the web interface at http://your-Unraid-ip:7842

Unraid Config Guardian

Unraid Config Guardian Logo

CI/CD Pipeline Docker Pulls GitHub release License

Your Unraid flash drive crashed and you don't have a backup?

This tool saves you from complete disaster by automatically documenting your entire Unraid configuration.

Flash Drive Disaster Recovery

The Problem: Your Unraid flash drive dies, taking with it:

  • All Docker container configurations
  • System settings and user shares
  • Plugin configurations and templates
  • Years of careful setup work

The Solution: Config Guardian automatically backs up everything needed to rebuild your server:

  • All running containers β†’ Docker templates + compose files
  • System configuration β†’ Settings, shares, plugins
  • Complete rebuild guide β†’ Step-by-step restoration
  • Change tracking β†’ See what changed between backups

Application

Dashboard Overview

Dashboard Screenshot

Container Management

Container Management Screenshot

Emergency Setup (Flash Drive Died)

Quick Install on Fresh Unraid

  1. Install fresh Unraid on new hardware/flash drive
  2. Set up basic array and enable Docker
  3. Install Config Guardian:
# SSH into Unraid and run:
mkdir -p /mnt/user/appdata/unraid-config-guardian
mkdir -p /mnt/user/backups/unraid-docs

docker run -d \
  --name unraid-config-guardian \
  --restart unless-stopped \
  -p 7842:7842 \
  -v /mnt/user/appdata/unraid-config-guardian:/config \
  -v /mnt/user/backups/unraid-docs:/output \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  -v /boot:/boot:ro \
  -e PUID=99 -e PGID=100 \
  -e SCHEDULE="0 2 * * 0" \
  stephondoestech/unraid-config-guardian:latest
  1. Access: http://your-unraid-ip:7842
  2. Generate backup to start protecting your new setup

Preventive Setup (Normal Use)

Install via Community Apps β†’ Search "Config Guardian" β†’ Install

Pro Tip: Set up weekly automated backups immediately after configuring any new containers!

Your Backup Contains Everything Needed

unraid-backup/
β”œβ”€β”€ container-templates.zip # Native Unraid XML templates β†’ Drop in Docker tab
β”œβ”€β”€ docker-compose.yml      # Emergency fallback containers
β”œβ”€β”€ unraid-config.json      # System settings, shares, plugins
β”œβ”€β”€ restore.sh              # Automated restoration script
β”œβ”€β”€ changes.log             # What changed since last backup
└── README.md               # Step-by-step recovery guide

Data Sources:

  • Running Docker containers (via Docker API)
  • Unraid system configuration (/boot/config/)
  • User shares and disk settings
  • Plugin configurations and templates

Super Simple Recovery

When disaster strikes:

  1. Fresh Unraid install β†’ Set up array
  2. Restore from backup:
    cd /mnt/user/backups/unraid-docs/latest
    bash restore.sh
    
  3. Add containers: Docker tab β†’ Your templates are in the dropdown
  4. Copy back appdata from your separate backups

That's it! Your entire server configuration is restored.

IMPORTANT: This is NOT a Data Backup Solution

Config Guardian only backs up your CONFIGURATION, not your data. You still need a proper backup solution for your appdata and media files.

Recommended backup solutions:

  • Kopia - Modern, fast, encrypted backups
  • Duplicacy - Web-based backup management
  • Rustic - Rust-based restic alternative
  • Unraid Plugins: CA Backup/Restore, Appdata Backup

What Config Guardian backs up:

  • Docker container configurations and templates
  • Unraid system settings and shares
  • Plugin configurations
  • Recovery scripts and documentation

What you still need to backup separately:

  • /mnt/user/appdata/ (your container data)
  • /mnt/user/ (your media and files)
  • Any custom scripts or configurations

Configuration

Essential Settings:

SCHEDULE="0 2 * * 0"       # Weekly backup (Sunday 2 AM)
PUID=99 PGID=100           # Standard Unraid permissions
MASK_PASSWORDS=true        # Hide sensitive data in backups

Common Issues:

  • No templates in dropdown: Enable Template Authoring Mode in Docker settings
  • Permission errors: See troubleshooting guide

If the web UI won’t start and logs are empty, check your container template includes PUID and PGID (e.g., 99/100) and recreate the container so the entrypoint can set permissions.

Manual Usage

# Generate backup now
docker exec unraid-config-guardian python3 src/unraid_config_guardian.py

# View logs
docker logs unraid-config-guardian

# Check what changed
cat /mnt/user/backups/unraid-docs/latest/changes.log

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built by Stephon Parker for the Unraid community

Development supported by Claude (Anthropic)

⭐ Star | πŸ› Issues | πŸ’‘ Features

Install UnraidConfigGuardian on Unraid in a few clicks.

Find UnraidConfigGuardian in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for UnraidConfigGuardian Review the template variables and paths Click Install

Requirements

THIS REQUIRES THE dockersocket APP FROM THE APP STORE TO RUN

Categories

Download Statistics

92,476
Total Downloads
11,307
This Month
11,564
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
stephondoestech/unraid-config-guardian:latest
Last Updated2026-03-16
First Seen2025-08-28

Runtime arguments

Web UI
http://[IP]:[PORT:7842]
Network
bridge
Shell
sh
Privileged
false

Template configuration

Web UI PortPorttcp

Port for web interface

Target
7842
Default
7842
Value
7842
AppDataPathrw

Application configuration

Target
/config
Default
/mnt/user/appdata/unraid-config-guardian
Value
/mnt/user/appdata/unraid-config-guardian
Output DirectoryPathrw

Generated backup files location

Target
/output
Default
/mnt/user/backups/unraid-docs
Value
/mnt/user/backups/unraid-docs
Unraid Flash DrivePathro

Unraid flash drive for system configuration

Target
/boot
Default
/boot
Value
/boot
PUIDVariable

User ID

Default
99
Value
99
PGIDVariable

Group ID

Default
100
Value
100
TimezoneVariable

Timezone for logging

Target
TZ
Default
America/New_York
Value
America/New_York
Backup ScheduleVariable

Cron schedule for automated backups (Sunday 2 AM)

Target
SCHEDULE
Default
0 2 * * 0
Value
0 2 * * 0
Mask PasswordsVariable

Hide sensitive environment variables

Target
MASK_PASSWORDS
Default
true
Value
true
Include System InfoVariable

Include system information in backup

Target
INCLUDE_SYSTEM_INFO
Default
true
Value
true
DOCKER HOSTVariable
Target
DOCKER_HOST
Value
tcp://dockersocket-ip:2375