diff --git a/misc-scripts/production_database/scripts/populate_production_db_tables_v2.pl b/misc-scripts/production_database/scripts/populate_production_db_tables_v2.pl index ab1d8092a4f222550dd208f5d8bd071631ba01f0..59151175e50f6d5c84b00f6410bf14ecd2dea980 100644 --- a/misc-scripts/production_database/scripts/populate_production_db_tables_v2.pl +++ b/misc-scripts/production_database/scripts/populate_production_db_tables_v2.pl @@ -205,13 +205,17 @@ my %data; if ($dumpout) { - my $file_path = $dumpout . "/" . $dbname . $table .'.sql'; + my $file_path = $dumpout . "/" . $dbname . $table .'_bak.sql'; open(BKUPFILE, ">$file_path") or die("Can't write to file $file_path\n"); my $cmd = "mysqldump -h $host -u $user -p$pass $dbname $table"; my $result = `$cmd`; print BKUPFILE $result; close BKUPFILE; - if ($result !~ /Dump completed/) { print("back up failed, check file $file_path for details\n");} + if ($result !~ /Dump completed/) { + print("back up failed, check file $file_path for details\n"); + } else { + print("$full_table_name_bak dumped out to file $file_path\n"); + } next; }