Hi,
The only way is to restore the backup you had made.
A Wampserver update, for example 3.1.7 will restore the www folder, but only with Wampserver's own folders and files, but in no way restore your own folders.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons