diff --git a/modules/backup/mysql-restore-to-sql.sh b/modules/backup/mysql-restore-to-sql.sh index 4413735..16b7a43 100755 --- a/modules/backup/mysql-restore-to-sql.sh +++ b/modules/backup/mysql-restore-to-sql.sh @@ -7,12 +7,22 @@ # Use Case: Restore InnoDB databases from file-based backups (Acronis, etc.) # # Features: +# - Multi-control panel support (cPanel, Plesk, InterWorx, standalone) # - Interactive guided workflow # - Validates MySQL data directory structure # - Starts second MySQL instance for safe extraction # - Creates SQL dumps from restored files # - Handles InnoDB system tablespace requirements # - Optional force-recovery mode for corrupted databases +# +# Control Panel Paths (from lib/system-detect.sh → SYS_USER_HOME_BASE): +# - cPanel: /home +# - Plesk: /var/www/vhosts +# - InterWorx: /chroot/home (actual path, /home is symlink) +# - Standalone: /home +# +# Suggested restore directory format: ${SYS_USER_HOME_BASE}/temp/restoreYYYYMMDD/mysql +# SQL output directory: ${SYS_USER_HOME_BASE}/temp/restoreYYYYMMDD/ ################################################################################ # Path resolution (modules/backup/script.sh → ../../)