Preserving is OK, but don't just copy the directories over and expect it to work, it may not.
You should be copying over your configuration files, module source files and databases.
Just confirm you are running through ./Config make make install cleanly please.