Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- serverA = <server B>
- serverB = <server A>
- for db in serverB
- // check if our db is in serverA or not
- if db is in serverA
- // attempt to transfer the data over to serverA either row by row or chunk by chunk
- for table in db
- if table is in serverA
- // loop over the table information and dynamically compare it to serverA
- if duplicate
- // skip
- else
- // attempt to insert
- else
- // dump a backup schema and data of database, and directly copy it over to serverA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement