The title pretty much says it all. I'm happy to copy folders, or use a utility. I know a lot of preferences are kept in ~/user/Library/Application Support.
Backup your system using Time Machine.
Then you can erase the entire disk, install Lion cleanly, and just restore e.g. user accounts, but not applications.