Recordferry is a project mainly written in PHP and SHELL, it's free.
Migrate records and their dependencies between databases.