How do I transfer all packages and datapages to a new machine?

The easiest way to do this is to overwrite the database that holds the packages and datapages.