Files
backup_to_external_m.2/old_scripts/simple_auto_backup.sh
root 56c07dbe49 Complete rewrite: Single working LVM block-level backup script
- Removed 40+ broken/messy scripts, moved to old_scripts/
- Created lvm_block_backup.sh - proper block-level LVM snapshot backup
- Uses dd for block-level cloning instead of file-level rsync
- Successfully tested: 462GB backup in 33 minutes
- Creates exact, bootable clone of internal drive to external drive
- Proper LVM snapshot management with cleanup
- Clear documentation in README_BACKUP.md
- Clean, minimal solution that actually works
2025-09-30 17:35:22 +02:00

28 lines
876 B
Bash
Executable File

#!/bin/bash
# Simple launcher script for automated backup from within Clonezilla
echo "==================================="
echo " AUTOMATED SYSTEM BACKUP LAUNCHER"
echo "==================================="
echo
echo "This script will:"
echo "1. Auto-detect your internal drive"
echo "2. Create a high-speed backup to this USB"
echo "3. Complete in ~15-20 minutes"
echo
read -p "Press Enter to start automatic backup (Ctrl+C to cancel)..."
# Mount backup partition
mkdir -p /tmp/backup_storage
mount /dev/sda2 /tmp/backup_storage 2>/dev/null
if [[ -f /tmp/backup_storage/automated_clonezilla_backup.sh ]]; then
echo "Starting automated backup script..."
/tmp/backup_storage/automated_clonezilla_backup.sh
else
echo "ERROR: Automated backup script not found!"
echo "Falling back to manual Clonezilla..."
sleep 3
sudo /usr/sbin/ocs-live-general
fi