Overview
Borg UI supports backing up to remote repositories over SSH, enabling secure offsite backups to:- Dedicated backup servers
- Cloud storage with SSH access (Hetzner Storage Box, rsync.net)
- NAS devices (Synology, QNAP)
- Remote Linux servers
SSH Key Management
Borg UI uses a single system SSH key for all remote connections. This simplifies key management and deployment.Generate System SSH Key
Generate New Key
Click Generate System SSH Key and configure:
- Key Name: “System SSH Key” (default)
- Key Type: Choose algorithm
ed25519: Modern, fast, secure (recommended)rsa: Compatible with older systemsecdsa: Alternative modern algorithm
- Description: Optional note about the key
Import Existing SSH Key
If you already have an SSH key:- Click Import System SSH Key
- Provide paths to key files:
- Private Key Path:
/local/ssh/id_ed25519 - Public Key Path:
/local/ssh/id_ed25519.pub(auto-detected)
- Private Key Path:
- Enter a name and description
- Click Import
Setting Up SSH Connections
SSH connections define remote servers where you can store repositories or backup data from.Quick Setup (Automated)
The quickest way to set up a remote connection:Configure Connection
Fill in the remote server details:
- Connection Name: Friendly name (e.g., “Hetzner Storage”)
- Host: Server hostname or IP address
- Username: SSH username
- Port: SSH port (default: 22)
- Password: Used only for key deployment
- Default Path: Starting directory (e.g.,
/for Hetzner) - SSH Path Prefix: Path prepended to SSH commands (Synology:
/volume1) - SFTP Mode: Enable for Hetzner/restricted shells, disable for Synology
Manual Setup
For greater control or when automated deployment fails:Enter Connection Details
- Host: Remote server address
- Username: SSH username
- Port: SSH port (default: 22)
- Default Path: Starting directory for browsing
- SSH Path Prefix: Path prefix for commands (see platform notes)
- Mount Point: Logical name (e.g.,
/hetzner,/nas)
Platform-Specific Configuration
Hetzner Storage Box
Hetzner Storage Box uses a restricted shell. SFTP mode must be enabled for key deployment.
Synology NAS
rsync.net
Generic Linux Server
Creating Remote Repository
Once the SSH connection is established:Select SSH Connection
- Connection: Choose your SSH connection from the dropdown
- Path: Remote path for repository (e.g.,
/backups/my-repo)
Configure Repository
- Name: Friendly name
- Encryption:
repokeyorkeyfile - Passphrase: Encryption password
- Compression:
lz4(recommended for remote) - Source Directories: Local paths to back up
- Exclude Patterns: Files to skip
Remote Path Prefix Explained
The SSH Path Prefix handles differences between SFTP and SSH command paths:- Synology NAS: Volumes like
/volume1,/volume2 - QNAP NAS: Share paths like
/share/backups - Any system where Borg commands need absolute paths different from SFTP paths
Leave SSH Path Prefix empty for standard Linux servers and Hetzner Storage Box.
Importing Existing Remote Repository
If you have an existing Borg repository on a remote server:Provide Credentials
- Encryption Passphrase: Required for encrypted repos
- Compression: Set default for future backups
Upload Keyfile (if needed)
For
keyfile or keyfile-blake2 encryption:- Import the repository first
- Navigate to repository details
- Click Upload Keyfile
- Select the keyfile from your local machine
Storage Information
Borg UI can display remote storage usage:- Navigate to SSH Connections
- Click Refresh Storage on a connection
- View:
- Total storage
- Used space
- Available space
- Usage percentage
Browse Remote Files
You can browse remote filesystems to select backup sources:- Create or edit a repository
- In Source Directories, click Browse Remote
- Select the SSH connection
- Navigate the remote filesystem
- Select directories to back up
Only available for repositories with associated SSH connections.
Troubleshooting
Connection Test Fails
Check SSH key deployment:Borg Init Fails on Remote
Ensure Borg is installed on remote server:Hetzner Storage Box: Permission Denied
- Enable SSH access in Hetzner control panel
- Use port 23 (or 22, depending on configuration)
- Ensure SFTP mode is enabled
- Username must match storage box username
Synology: Key Deployment Fails
- Disable SFTP mode for Synology
- Ensure SSH service is enabled in Synology control panel
- User must be in
administratorsgroup - Set SSH Path Prefix to
/volume1(or your volume name)
Repository Path Not Found
Check if parent directory exists:Performance Considerations
Network Speed
Remote backups are limited by network bandwidth:- LAN: 100+ MB/s (fast)
- Internet: 10-50 MB/s (typical residential upload)
- Cloud: Varies by provider and plan
First Backup
Initial backups to remote repositories take longer:- All data must be uploaded
- Network latency affects performance
- Consider running first backup during off-hours
Subsequent Backups
Borg’s deduplication minimizes remote transfer:- Only changed blocks are uploaded
- Typical incremental backups are small
- Deduplication works across all archives
Security Best Practices
Use Strong Passphrases
Use Strong Passphrases
- Minimum 20 characters
- Mix of letters, numbers, symbols
- Store in password manager
- Never reuse passphrases
Restrict SSH Access
Restrict SSH Access
On remote server, create dedicated user:Restrict to Borg commands only (advanced):
Firewall Configuration
Firewall Configuration
- Open only SSH port (22 or custom)
- Use fail2ban to prevent brute force
- Consider VPN for extra security
Backup Keyfiles
Backup Keyfiles
For
keyfile encryption:- Download keyfile from Borg UI
- Store in secure location (password manager, USB drive)
- Keep offline backup
- Never lose keyfile - data is unrecoverable without it
Next Steps
Schedule Remote Backups
Automate backups to remote storage
Monitor Backups
Get alerts for remote backup status