<s> from cloudferry . lib . base . action import transporter <EOL> from cloudferry . lib . os . actions import utils <EOL> from cloudferry . lib . utils import utils as utl <EOL> class TransportDbViaSsh ( transporter . Transporter ) : <EOL> def run ( self , cfg = None , <EOL> src_cloud = None , <EOL> dst_cloud = None , <EOL> info_storage = None , <EOL> resource_name = utl . VOLUMES_DB , ** kwargs ) : <EOL> data_for_trans = info_storage [ resource_name ] <EOL> host_src = cfg . src_mysql . host <EOL> host_dst = cfg . dst_mysql . host <EOL> for item in data_for_trans : <EOL> path_src = data_for_trans [ item ] <EOL> path_dst = data_for_trans [ item ] <EOL> utils . transfer_file_to_file ( src_cloud , dst_cloud , host_src , <EOL> host_dst , path_src , path_dst , <EOL> cfg . migrate ) <EOL> return { } </s>
