Bash script task failed with unexpected error!

Hi @Inderpreet @royki @player001 @mmumshad
I’ve got a task to write a bash script. The .zip file was successfully copied on the backup server without a password, still the task failed!
I’ve generated SSH keys and copied on the backup server before executing the script.
Please check the below screenshots and have a look at the task!

Hello, @Ashu27
If you are running script from the app server User tony then why you are adding sudo in the bash script ?
I believe you knew, what sudo does. Provides similar privileges of root level and acts as a root.
Please try to remove sudo and run the script completely from tony User.