moving users from old to new install

my previous elgg install ceased to function properly after upgrading it to 1.7 so I made a clean install elsewhere and would like to move my users, their data and files over to the new install.

Does anyone have any idea how to go about doing this?