Actually, thats what I was doing. I've upgraded the old installation to 4.0.0 so that the database schema would match and a simple dump/restore should do that.
I was more concerned about the directory tree. So you only need the "sites" subdirectory to be moved, right?