Commit dd6b71b1 authored by daidekun's avatar daidekun

file_name

parent 68138ee2
......@@ -123,9 +123,12 @@ sed -i "s/source_port/${port}/g" $config_file_name
#同步基础数据
for table_name in $sys_table_list
do
file_name=$db_backup_sub_folders/$table_name.sql
if [[ $table_name = 'repay' || $table_name = 'v_manifest' || $table_name = 'v_repay' ]]; then
echo "skip view table $table_name"
else
mysqldump -u${source_db_user} -p${source_db_pwd} -h${source_db_host} -P${port} --skip-lock-tables --databases $database_name --tables $table_name >> $db_backup_sub_folders/$table_name.sql
echo "mysqldump $file_name"
mysqldump -u${source_db_user} -p${source_db_pwd} -h${source_db_host} -P${port} --skip-lock-tables --databases $database_name --tables $table_name >> $file_name
fi
done
\ No newline at end of file
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