#!/bin/bash time=$(date "+%Y-%m-%d") mysqldump -uroot --password='1q2w#E$R' ywpt --tables yc_station yc_stcd_info yc_station_area yc_error_monitor yc_error_rule yc_threshold employee employee_station_bind flood_season yc_device_type yc_station_warn_level yc_station_type> /home/ywpt-bak/"ywpt${time}.sql"