- Fixed partition size calculation bugs in migrate_to_lvm.sh - Added comprehensive error handling for USB drive stability - Optimized data copy operations using cp -a for better performance - Corrected mount point detection for encrypted home partitions - Enhanced drive detection and exclusion logic - Added proper size override mechanisms for manual intervention - Improved filesystem creation and validation processes - Complete toolset for external M.2 drive migration scenarios Tested successfully on: - Debian 13 Trixie Live USB environment - 476GB external M.2 drives via USB 3.0 - Complex partition layouts (root/home/EFI + encryption) - Large data transfers (314GB+ encrypted home directories)
28 lines
876 B
Bash
Executable File
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
|