Skip to main content

Overview

Borg UI provides fast archive browsing with intelligent Redis caching that dramatically improves performance for large repositories. Navigate through backup archives, preview files, and restore individual files or entire directories.

Redis Caching (600x Faster)

Archive browsing uses Redis caching to accelerate file listings:
Performance Improvement: First browse loads from Borg (slow), subsequent browses use Redis cache (600x faster). Cache is automatically invalidated when archives change.

Memory Safety

Borg UI protects against out-of-memory errors when browsing large archives:
Configurable Limits:
  • browse_max_items: Maximum files to load (default: 1,000,000)
  • browse_max_memory_mb: Maximum memory usage (default: 1024 MB)
For archives with millions of files, consider using command-line tools or increasing memory limits in Settings > System.

Browsing Archives

1

List Available Archives

Get all archives in a repository:
Response:
2

Browse Archive Contents

Navigate through the archive filesystem:
Response:
3

Get Archive Details

View detailed information about an archive:

Archive Information

Get comprehensive metadata about an archive:

Directory Size Calculation

Borg UI calculates directory sizes recursively:
Example:

File Restoration

Download Individual Files

1

Select File

Navigate to the file in the archive browser.
2

Extract File

Borg UI extracts the file to a temporary directory:
3

Download

File is served as a download and temporary files are cleaned up.

Deleting Archives

Remove old archives to free up space:
Response:
Deleting archives is permanent! Ensure you no longer need the data before deletion. Consider using borg prune with retention policies instead.

Delete Job Status

Monitor archive deletion progress:
Response:

Cancel Delete Operation

Cache Management

Redis cache stores parsed archive listings:
Cache Behavior:
  • First browse: Fetches from Borg (slow)
  • Subsequent browses: Uses Redis cache (600x faster)
  • Auto-invalidation: Cache cleared when archives change
  • Size limits: Enforced by cache service

Performance Tips

  • Redis Caching: Enable Redis for 600x faster archive browsing
  • Memory Limits: Adjust browse_max_items for very large archives
  • Directory Sizes: Calculated recursively from cached data
  • Bypass Lock: Use for read-only access to locked repositories
  • File Restoration: Extract only needed files, not entire archives
  • Cleanup: Use borg prune instead of manual archive deletion

Bypass Lock Mode

Browse archives while backups are running:
Use Cases:
  • Repository is locked by another operation
  • Read-only access to remote repositories
  • Observability-only repositories
Bypass lock mode uses borg --bypass-lock flag which is safe for read-only operations but should not be used during write operations.

File Listing Format

Borg UI parses JSON-lines output from Borg:
Field Types:
  • f: Regular file
  • d: Directory
  • l: Symbolic link
  • h: Hard link