Copy them to a separate temp directory, as if it's a separate installation.
That is only required if you are going to import threads and attachments, otherwise you can just copy the data/avatars directories.
Perform the import, delete the temp database and directories.