Installation Guide
Borg UI runs as a Docker container with support for multiple architectures (amd64, arm64, armv7). Choose your preferred installation method below.All installation methods use the same Docker image:
ainullcode/borg-ui:latestAvailable on Docker HubPrerequisites
- Docker installed on your system
- Basic understanding of Docker volumes and networking
- Access to directories you want to back up
Installation Methods
Docker Compose
Recommended - Easy management and configuration
Docker Run
Quick single-command installation
Portainer
Visual Docker management interface
Unraid
NAS-optimized installation
Docker Compose (Recommended)
Docker Compose provides the best experience for managing Borg UI with easy configuration and updates.Option 1: Basic Setup (No Redis)
Good for occasional use with smaller repositories. Uses in-memory caching.Option 2: With Redis (Recommended for Production)
Redis provides 600x faster archive browsing for large repositories. Recommended if you browse archives regularly.Option 3: External Redis
Use an existing Redis instance on your network or a separate machine.Docker Run
Quick single-command installation for simple setups.Basic Installation
Replace
/path/to/your/data with the directory you want to back up (e.g., /home/john, /mnt/photos).With Docker Socket (Optional)
Mount the Docker socket to enable Docker container management in pre/post backup scripts:See the Backup Scripts Guide for examples of stopping/starting containers during backups.
Portainer
Portainer provides a visual interface for managing Docker containers.Create the stack
- Name:
borg-ui - Build method: Web editor
- Paste one of the Docker Compose configurations above
Customize configuration
Update the following in the compose file:
- Replace
/path/to/your/datawith your backup directory - Set your timezone in
TZvariable - Set
PUIDandPGIDto match your user (runid -u && id -g)
Unraid
Unraid users have two installation options: Docker Compose Manager (recommended) or the traditional web UI method.Option 1: Docker Compose Manager (Recommended)
Add the compose configuration
Unraid defaults:
PUID=99andPGID=100are standard for Unraid/mnt/userprovides access to all user shares- Appdata is stored in
/mnt/user/appdata/borg-ui
Option 2: Unraid Web UI (Traditional)
Volume mappings
| Container Path | Host Path | Mode |
|---|---|---|
/data | /mnt/user/appdata/borg-ui | Read/Write |
/home/borg/.cache/borg | /mnt/user/appdata/borg-ui/cache | Read/Write |
/local | /mnt/user | Read/Write |
For Redis support with the traditional web UI method, you’ll need to create a separate Redis container and link them via Docker networks.
Advanced Configuration
Mount Multiple Directories
You can mount as many directories as needed:If you use custom container paths (not
/local), set the LOCAL_MOUNT_POINTS environment variable:Environment Variables
Common environment variables:| Variable | Default | Description |
|---|---|---|
PORT | 8081 | Web interface port |
TZ | Host timezone | Timezone for timestamps |
PUID | 1001 | User ID for file permissions |
PGID | 1001 | Group ID for file permissions |
REDIS_HOST | - | Redis hostname for caching |
REDIS_PORT | 6379 | Redis port |
REDIS_URL | - | Full Redis URL (alternative to HOST/PORT) |
CACHE_TTL_SECONDS | 7200 | Cache expiration (2 hours) |
CACHE_MAX_SIZE_MB | 2048 | Max cache size (2GB) |
LOG_LEVEL | INFO | Logging level (DEBUG, INFO, WARNING, ERROR) |
LOCAL_MOUNT_POINTS | /local | Comma-separated container mount paths |
See the Environment Variables Guide for a complete list of environment variables and advanced settings.
Privileged Mode (Optional)
Privileged mode is only required for remote-to-remote backups using SSHFS mounting.Timeouts for Large Repositories
For very large repositories, increase operation timeouts:Post-Installation
Access the web interface
Navigate to
http://localhost:8081 (or your server’s IP)Default credentials:- Username:
admin - Password:
admin123
Create your first repository
Follow the Quick Start Guide to create your first backup.
Updating Borg UI
Docker Compose
Docker Run
Portainer
- Go to Stacks
- Select
borg-ui - Click Pull and redeploy
Unraid
- Go to Docker tab
- Find
borg-web-ui - Click Update icon
Your data, configurations, and backups are stored in Docker volumes and persist across updates.
Troubleshooting
Container won't start
Container won't start
Check the logs:Common issues:
- Port conflict: Change
-p 8082:8081to use different port - Volume permissions: Ensure mounted directories exist and are readable
- Invalid environment variables: Check syntax in compose file
Permission errors when accessing files
Permission errors when accessing files
Set correct PUID/PGID:
-
On your host, run:
-
Update environment:
-
Recreate container:
Can't access web interface
Can't access web interface
-
Check container is running:
-
Check firewall:
-
Verify port mapping:
-
Check logs for errors:
Redis connection failed
Redis connection failed
-
Check Redis is running:
-
Test Redis connection:
Should return
PONG -
Verify network connectivity:
-
Check Redis health:
Wrong timestamps in archives
Wrong timestamps in archives
Uninstalling
Remove container only
Remove everything (including backups)
Next Steps
Quick Start
Create your first backup in minutes
Usage Guide
Learn all features and workflows
Configuration
Customize advanced settings
Notifications
Set up backup alerts