Engine Restore

Steps

  1. Transfer backup archive and restore script.
  2. Prepare for restore.
    # Make restore script executable
    chmod +x /root/restore_engine.sh
  3. Run restore script.
    # Run restore (as root)
    ./restore_engine.sh /root/amdp_eng_backup_20251209_110000.tar.gz
  4. Follow interactive prompts.
    The script will:
    1. Extract and validate the backup archive.
    2. Display the backup manifest.
    3. Show final confirmation:
      WARNING: This restore process will:
        1. Overwrite existing configuration files
        2. Overwrite existing data in /var/lib/triage and /var/lib/sandbox
      
      Do you want to continue? (yes/no):
      • Type yes to proceed.

      Expected Output:

      [2025-12-09 15:00:00] ===================================================
      [2025-12-09 15:00:00] Starting AMDP On-Prem Engine Restore Process
      [2025-12-09 15:00:00] ===================================================
      [2025-12-09 15:00:00] Backup archive: /root/amdp_eng_backup_20251209_110000.tar.gz
      [2025-12-09 15:00:00] Target OS: Ubuntu 24.04
      ...
      [2025-12-09 15:25:00] Restore completed successfully!
      [2025-12-09 15:25:00] ===================================================
      [2025-12-09 15:25:00] Log file: /root/amdp_eng_restore_20251209_150000.log
      [2025-12-09 15:25:00] 
      [2025-12-09 15:25:00] Next steps:
      [2025-12-09 15:25:00]   1. Reboot the system to ensure all services start cleanly
      [2025-12-09 15:25:00]   2. Regenerate sandbox VMs (they are not included in the backup)
      [2025-12-09 15:25:00]   3. Connect to the same AMDP Manager as before and test sandboxing functionality
  5. Reboot engine.