diff --git a/managed/devops/bin/yb_platform_backup.sh b/managed/devops/bin/yb_platform_backup.sh index cc55340ae5cd..9ac6d575a1d6 100755 --- a/managed/devops/bin/yb_platform_backup.sh +++ b/managed/devops/bin/yb_platform_backup.sh @@ -482,7 +482,7 @@ restore_backup() { metadata_regex="**/yugaware/conf/${VERSION_METADATA}" if [[ "${yba_installer}" = true ]]; then - version=$(basename $(realpath /opt/yugabyte/software/active)) + version=$(basename $(realpath ${data_dir}/software/active)) metadata_regex="**/${version}/**/yugaware/conf/${VERSION_METADATA}" fi current_metadata_path=$(find ${destination} -wholename ${metadata_regex}) diff --git a/managed/yba-installer/cmd/backup.go b/managed/yba-installer/cmd/backup.go index 4a7523270d07..6ec2c557b384 100644 --- a/managed/yba-installer/cmd/backup.go +++ b/managed/yba-installer/cmd/backup.go @@ -115,6 +115,8 @@ func RestoreBackupScript(inputPath string, destination string, skipRestart bool, } if migration { args = append(args, "--migration") + // Disable version checking in case of version upgrades during migration. + args = append(args, "--disable_version_check") } if useSystemPostgres { args = append(args, "--use_system_pg")