Commit aa46a07e authored by daidekun's avatar daidekun

hack bugs

parent 5481de23
......@@ -51,15 +51,15 @@ function db_schema_sync()
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 $mysql_host $db_backup_sub_folders
sh $work_dir/db_replace_ip.sh $database $target_db_host $db_backup_sub_folders
else
echo "Step 2: skip replace_ip"
fi
echo "Step 3: import basic data from backup file: $database $mysql_host $db_backup_sub_folders"
sh $work_dir/db_import.sh $database $mysql_host $db_backup_sub_folders
sh $work_dir/db_import.sh $database $target_db_host $db_backup_sub_folders
echo "Step 4: sync schema: $database $mysql_host"
echo "Step 4: sync schema: $database $target_db_host"
sync_cmd="mysql-schema-sync -conf ${config_file_name} -sync"
echo "${sync_cmd}"
#$sync_cmd
......
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