Added backup function.

creates copy of file with name $1.bak