regarding the below task it was working as expected and I can even see the zip file got created using the script, But when I finished the task it is saying its not got created. Even i have done the passwordless authentication too.
please find the script below
My first script
zip -r xfusioncorp_ecommerce.zip /var/www/html/ecommerce
cp /var/www/html/ecommerce/xfusioncorp_ecommerce.zip /backup/
scp -r /backup/xfusioncorp_ecommerce.zip email@example.com:/backup
Can you please explain the reason regarding this???