Skip to main content

Overview

Borg UI provides powerful backup management with live progress tracking, showing real-time metrics including current file being processed, backup speed, compression ratios, and estimated time remaining.

Live Progress Tracking

Watch your backups execute with detailed real-time metrics:
Progress tracking uses Borg’s --progress flag to parse JSON output in real-time, providing sub-second updates during backup operations.

Starting a Backup

1

Manual Backup

Start a one-time backup from the repository page:
Request:
Response:
2

Monitor Progress

Track backup progress in real-time:
Response:
3

View Completion

Once complete, view backup statistics and logs:

Progress Metrics Explained

Total size of data before compression
  • Raw file sizes from filesystem
  • Before any compression or deduplication
  • Indicates total data processed
Size after compression algorithm
  • After lz4/zstd/zlib/lzma compression
  • Before deduplication
  • Shows compression effectiveness
Compression Ratio:
Actual storage space used
  • After compression and deduplication
  • Eliminates duplicate chunks across archives
  • Final storage footprint
Space Savings:
Current processing rate
  • Measured in MB/s
  • Real-time throughput
  • Varies based on file types and compression
Predicted completion time
  • Based on current speed
  • Updates dynamically
  • Measured in seconds

Backup Jobs API

Get All Backup Jobs

Query Parameters:
  • limit: Maximum number of jobs to return (default: 200)
  • scheduled_only: Filter to scheduled jobs only
  • manual_only: Filter to manual backups only
Response:

Canceling Backups

Stop a running backup gracefully:
Response:
Canceling a backup mid-operation is safe - Borg ensures repository consistency. However, the partially created archive may remain until pruned.

Backup Logs

Stream Logs in Real-Time

Response:

Download Complete Logs

Logs are only saved for failed or cancelled backups to optimize storage. Successful backups don’t generate log files.

Pre/Post Backup Hooks

Run custom scripts before and after backups:
Common Use Cases:
Ensure consistent backups
Backup databases before filesystem backup
Create LVM snapshots

Maintenance Operations

Backups can trigger automatic maintenance:
Maintenance Status Tracking:

Backup Performance Tips

  • Compression: Use lz4 for speed, zstd for balance, lzma for maximum compression
  • Exclusions: Skip cache files, logs, and temporary data
  • Scheduling: Run during off-peak hours for large backups
  • Hooks: Keep pre-backup hooks fast to minimize downtime
  • Deduplication: Borg’s chunking works best with unchanged files
  • Network: Use compression for remote backups over slow connections

Remote Source Backups

Pull data from remote servers for backup:
Use Case: Backup remote servers to local storage by pulling data over SSH.

Error Handling

Borg UI captures and categorizes backup errors:
Common Errors:
  • Lock timeout: Another backup is running
  • Permission denied: Check file permissions
  • Connection refused: Verify SSH connectivity
  • Passphrase incorrect: Verify repository passphrase
  • Disk full: Check available storage space