Overview
Borg UI provides comprehensive repository management with support for multiple storage backends, encryption modes, and compression algorithms. Create new repositories or import existing ones with a streamlined workflow.Storage Backends
- Local Storage
- SSH
- SFTP
Store repositories directly on the filesystem where Borg UI is running.Path Examples:
/data/backups/my-repo- Container storage/local/home/user/backups- Host filesystem via Docker mount
Paths starting with
/local/ access your host filesystem through Docker volume mounts. Paths without this prefix are stored inside the container.Encryption Modes
Borg UI supports all Borg encryption modes:1
Choose Encryption Mode
Select from available encryption modes based on your security requirements:
repokey modes are convenient for single-user setups. keyfile modes allow sharing keys across multiple machines.
2
Set Passphrase
For encrypted repositories, provide a strong passphrase:
3
Manage Keyfiles (Optional)
For keyfile-based encryption, Borg UI automatically manages keys:
- Upload Keyfile: Import existing keyfiles via API endpoint
- Download Keyfile: Export keys for backup or sharing
- Automatic Storage: Keys stored in
~/.config/borg/keys/
Compression Algorithms
Choose compression based on your performance vs. storage requirements:lz4 (Default)
lz4 (Default)
Fast compression with minimal CPU overhead
- Compression ratio: ~2:1 to 3:1
- Speed: Very fast (300+ MB/s)
- Best for: General use, modern hardware
- CPU usage: Low
zstd
zstd
Balanced compression with good ratio
- Compression ratio: ~3:1 to 5:1
- Speed: Fast (100-200 MB/s)
- Best for: Balance of speed and storage
- CPU usage: Medium
- Supports compression levels (1-22)
zlib
zlib
Good compression ratio, slower speed
- Compression ratio: ~3:1 to 6:1
- Speed: Moderate (50-100 MB/s)
- Best for: Storage-constrained environments
- CPU usage: Medium-High
- Supports compression levels (1-9)
lzma
lzma
Maximum compression ratio
- Compression ratio: ~5:1 to 10:1
- Speed: Slow (20-50 MB/s)
- Best for: Archival storage, rarely accessed data
- CPU usage: High
- Supports compression levels (0-9)
auto
auto
Borg auto-detectionBorg automatically selects compression based on file type:
- Already compressed files: No compression
- Compressible files: lz4 compression
obfuscate
obfuscate
Data obfuscation without compression
- Makes data patterns less obvious
- No compression benefit
- Same size as original data
Creating a Repository
1
Navigate to Repositories
Click Repositories in the sidebar, then Create Repository.
2
Configure Basic Settings
Fill in repository details:
3
Set Source Directories
Specify which directories to backup:
Source directories are required for repositories in full mode. Observability-only repositories don’t need source directories.
4
Configure Exclusions (Optional)
Use exclude patterns to skip files:
5
Advanced Options
Configure optional settings:
- Remote Path: Custom borg binary path (e.g.,
/usr/local/bin/borg) - Custom Flags: Additional borg create flags
- Bypass Lock: Read-only access for observe-only mode
- Pre/Post Scripts: Hooks to run before/after backups
Importing Existing Repositories
Import repositories created outside Borg UI:1
Verify Repository
Borg UI validates the repository using
borg info:2
Import Keyfile (If Needed)
For keyfile encryption, upload your existing keyfile:
3
Update Statistics
Archive count and size are automatically updated:
Repository Modes
- Full Mode
- Observe Mode
Complete backup and observability
- Create new backups
- Browse and restore archives
- Schedule automated backups
- Full repository management
SSH Path Prefix
For remote storage with non-standard paths (e.g., Synology NAS):- Synology NAS with
/volume1prefix - Custom chroot environments
- Restricted SSH shells
Repository Statistics
Borg UI automatically tracks repository metrics:- Archive count
- Total repository size
- Last backup timestamp
- Compression effectiveness
- Deduplication ratio
Lock Configuration
Borg UI configures repository locks to prevent conflicts:Best Practices
- Encryption: Always use encryption for sensitive data
- Passphrases: Use strong, unique passphrases (20+ characters)
- Keyfile Backup: Store keyfile backups in a secure location
- Test Restores: Regularly verify backups are recoverable
- Remote Backups: Use SSH for off-site disaster recovery
- Compression: Start with lz4, adjust based on storage needs