Borg Backup is a deduplicating backup program with support for compression and encryption. It efficiently stores data by eliminating redundant chunks, making it ideal for frequent backups with minimal storage overhead.
📑 Table of Contents
Key Features
- Deduplication: Space-efficient storage
- Encryption: AES-256 encrypted backups
- Compression: Multiple algorithms available
- Mounting: Browse backups as filesystem
- Pruning: Automatic old backup removal
Installation
Install Borg on Ubuntu:
sudo apt update
sudo apt install borgbackup
Usage Examples
Basic Borg operations:
# Initialize repository
borg init --encryption=repokey /path/to/repo
# Create backup
borg create /path/to/repo::backup-$(date +%Y-%m-%d) /home /etc
# List backups
borg list /path/to/repo
# Restore files
borg extract /path/to/repo::backup-2024-01-15
# Prune old backups
borg prune -v --keep-daily=7 --keep-weekly=4 /path/to/repo
Benefits
Borg provides efficient backup with strong security. Its deduplication dramatically reduces storage needs while encryption ensures data privacy.
Was this article helpful?