Corrected Syntax Errors

Multiple Syntax Errors where preventing successful execution of the script.
Changed inname to wholename for the backup profile.