Creating a complete backup before the upgrade ensures you can restore your deployment if validation fails. Follow these steps to back up the current deployment:
  1. Set the working directory to the OpenEdge MCP Server installation directory:
    Set-Location $env:OEMCP_HOME
  2. Generate a timestamp and archive the generated profile and server registry:
    # Create timestamped backup
    $BackupDate = Get-Date -Format 'yyyyMMdd-HHmmss'
    Compress-Archive -Path @(
        "generated\$Profile",
        'generated\servers.registry.tsv'
    ) -DestinationPath "..\$Profile-backup-$BackupDate.zip" -Force
    
Protect the backup archive and retain the previous distribution until rollback validation is complete. Ensure private keys and tokens are protected from unauthorized access.