Login thru telnet to your ubb main dir.
At the prompt type:

tar cfpvz filename.tar.gz *

This will make a single file containing all your ubb files, dir's coding etc..

Once finished download it to your computer, then upload it to your new server.

Next type log into your new server thru telnet, and type:

tar xfpvz filename.tar.gz

This will recreate all your dir's files etc, and best of all your coding should be intact. One thing to check on is if you used 777 on your old server make sure your new one allows it to, otherwise you'll need to re-code to 755 the proper files.

Hope this helps,

C_P