Hi,
-- For databases:
Important Reminder: The transfer of databases between different versions of MySQL or MariaDB should be performed by EXPORT / IMPORT of SQL files using phpMyAdmin or a similiar tools of your choice. Do not copy the data folder between different versions of MYSQL or MariaDB. Databases from different versions of MYSQL or MariaDB are VERY unlikely to be compatible! You will also destroy the version of MYSQL or MariaDB that you copied the data folder to.
-- For local sites:
Folders that contains your local sites, i.e. your folders in wamp(64)/www/
But don't forget that with the use of VirtualHost, the folders of your local sites can be anywhere and not necessarily in the Wampserver tree, in which case there are no folders to copy but only the httpd-vhosts.conf file.
See items 1, 2 and 3 of
Wampserver 3 - Some explanationsDon't forget that your databases can also be outside the Wampserver tree, in which case, there is only the datadir directive of the my.ini file to modify.
See items 9 of
Wampserver 3 - Some explanations---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons