I completed the task and verified it …zip file found on /backup location on backup server…also, i performed passwordless authentication, so after running the script , it did not ask for password…Can you plz check…
You can review your work from this post.
I didn’t use sudo inside the script. Also, I didn’t run script from root user…So, it must be correct as per the task requirements.
@pratikshag Your zip archive name is incorrect (you named it what script name was) hence copied the same with wrong name.