feat: Add Borg Backup support to simple LVM backup system

- Add LV → Borg and VG → Borg backup modes
- GUI: Borg settings panel with repo path, encryption, passphrase
- CLI: Enhanced script with Borg options (--new-repo, --encryption, --passphrase)
- Automatic repository initialization for new repos
- Support for all Borg encryption modes (none, repokey, keyfile)
- Mount snapshots temporarily for file-level Borg backups
- Comprehensive cleanup of snapshots and mount points
- Updated documentation and examples

Benefits:
- Deduplication and compression
- Strong encryption support
- Incremental backups capability
- Space-efficient storage
- Still maintains simple snapshot → backup → cleanup workflow
This commit is contained in:
root
2025-10-09 00:37:17 +02:00
parent 72f9838f55
commit 179a84e442
4 changed files with 566 additions and 35 deletions

View File

@@ -3,7 +3,7 @@
# Enhanced script to list available backup sources and targets
# Shows options for all three backup modes
echo "=== Enhanced Simple LVM Backup - Available Options ==="
echo "=== Enhanced Simple LVM Backup with Borg Support - Available Options ==="
echo ""
echo "=== SOURCES ==="
@@ -74,6 +74,12 @@ echo ""
echo "3. Entire VG to Raw Device (complete clone):"
echo " sudo ./enhanced_simple_backup.sh vg-to-raw internal-vg /dev/sdb"
echo ""
echo "4. LV to Borg Repository (encrypted backup):"
echo " sudo ./enhanced_simple_backup.sh lv-to-borg /dev/internal-vg/root /path/to/borg/repo --new-repo"
echo ""
echo "5. Entire VG to Borg Repository (all LVs):"
echo " sudo ./enhanced_simple_backup.sh vg-to-borg internal-vg /path/to/borg/repo --encryption repokey"
echo ""
echo "=== GUI VERSION ==="
echo " sudo python3 simple_backup_gui.py"
echo ""
@@ -82,5 +88,7 @@ echo "- Always run as root (sudo)"
echo "- lv-to-lv: Updates existing backup LV"
echo "- lv-to-raw: Creates fresh backup, overwrites target device"
echo "- vg-to-raw: Clones entire VG including LVM metadata"
echo "- lv-to-borg/vg-to-borg: Creates deduplicated, compressed, encrypted backups"
echo "- Borg backups require: sudo apt install borgbackup"
echo "- Make sure target devices are unmounted before backup"
echo ""