AMBARI-23945. ADDENDUM: --keep-backup was not added to restore command
diff --git a/ambari-infra-solr-client/src/main/resources/ambariSolrMigration.sh b/ambari-infra-solr-client/src/main/resources/ambariSolrMigration.sh
index df18a88..938d649 100755
--- a/ambari-infra-solr-client/src/main/resources/ambariSolrMigration.sh
+++ b/ambari-infra-solr-client/src/main/resources/ambariSolrMigration.sh
@@ -78,12 +78,12 @@
   fi
 
   local skip_warnings_val=""
-  if [[ "$verbose" == "true" ]]; then
+  if [[ "$skip_warnings" == "true" ]]; then
     skip_warnings_val="--skip-warnings"
   fi
 
   local keep_backup_val=""
-  if [[ "$verbose" == "true" ]]; then
+  if [[ "$keep_backup" == "true" ]]; then
     keep_backup_val="--keep-backup"
   fi
 
@@ -173,7 +173,7 @@
     handle_result "$?" "Migrate Index" "$python_location" "$start_date"
 
     log_command "$python_location $script_location --ini-file $ini_file --action restore $keep_backup_val $verbose_val"
-    $python_location $script_location --ini-file $ini_file --action restore $verbose_val
+    $python_location $script_location --ini-file $ini_file --action restore $keep_backup_val $verbose_val
     handle_result "$?" "Restore" "$python_location" "$start_date"
 
     log_command "$python_location $script_location --ini-file $ini_file --action rolling-restart-solr $verbose_val --batch-interval $batch_interval"