Thanks for your reply Till
I have read the 'comments' section of the script and that is what I cannot understand.
So lets say for example my vps gets comprimised/hacked and I have to reinstall ispconfig 3 and I need to reinstall all of my sites from the backup.
How do I do this?
Do I upload all of the backup files that I downloaded prior to me reinstalling the OS and Ispconfig then use SSH and put the command:-
back-res db mysql date
and so on to restore all of those files and have my ftp, mysql databases, sites and blogs working again?