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
This commit is contained in:
27
old_scripts/simple_auto_backup.sh
Executable file
27
old_scripts/simple_auto_backup.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user