This is enwiki's ACC tool.
See WP:ACC/G
git clone ...
git submodule init
git submodule updateImport both database dumps to a database, create a new PHP file called "config.local.inc.php" and place any customisations to config.inc.php you need to make in config.local.inc.php