Manual:MoveToExternal.php

Details
moveToExternal.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to move revision's text to external storage.

You have to set up the and  configuration before running the script. See for more details.