Commit c5d772cb authored by daidekun's avatar daidekun

必须replace_ip

parent c94a1c9f
......@@ -50,11 +50,7 @@ function db_schema_sync()
sh $work_dir/db_gen_config.sh $source_db_host $source_db_user $source_db_pwd $target_db_host $target_db_user $target_db_pwd $database $config_file_name $db_backup_sub_folders
echo "Step 2: replace domain name in tables: $database $mysql_host $db_backup_sub_folders"
if [ "$re_replace_ip" = true ]; then
sh $work_dir/db_replace_ip.sh $database $target_db_host $db_backup_sub_folders
else
echo "Step 2: skip replace_ip"
fi
sh $work_dir/db_replace_ip.sh $database $target_db_host $db_backup_sub_folders
echo "Step 3: import basic data from backup file: $database $mysql_host $db_backup_sub_folders"
sh $work_dir/db_import.sh $database $target_db_host $db_backup_sub_folders
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment