Added SHA1 check and changed a variable

Added the SHA1 check and delete of the backup off the server. Changed
the variable that was in the script before from backup to restore. The
restore variable is used in the SHA1 check and did not want the two to
mess up.