Files
root 72f9838f55 cleanup: Archive old complex scripts and documentation
- Move all old complex backup scripts to old_scripts/
- Archive previous documentation versions
- Clean up temporary files and debian packages
- Update README to focus on new simple system
- Keep only the enhanced simple backup system in main directory

Main directory now contains only:
- simple_backup_gui.py (GUI interface)
- enhanced_simple_backup.sh (CLI interface)
- list_drives.sh (helper)
- simple_backup.sh (basic CLI)
- SIMPLE_BACKUP_README.md (detailed docs)
- README.md (project overview)
2025-10-09 00:30:03 +02:00

23 lines
533 B
Bash

#!/bin/bash
# LVM Backup Manager GUI Wrapper
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "LVM Backup Manager requires root privileges."
echo "Please run with: sudo lvm-backup-manager"
# Try to launch with pkexec if available
if command -v pkexec >/dev/null 2>&1; then
exec pkexec "$0" "$@"
else
exit 1
fi
fi
# Set proper path
SCRIPT_DIR="$(dirname "$0")"
export PATH="$SCRIPT_DIR:$PATH"
# Launch the GUI
cd "$SCRIPT_DIR"
exec python3 "$SCRIPT_DIR/lvm_backup_gui.py" "$@"