Run the below commands with superuser privileges to download the archived shell script. Unzip it and execute it, providing the needed domain name as an argument:
~# wget http://kb.parallels.com/Attachments/kcs-20264/recover_plesk_directories.zip
~# unzip recover_plesk_directories.zip
~# sh recover_plesk_directories.sh domain.tld