I have got the task to create a script to copy the blog file from folder to backer server. I have created it successfully and run it. I could even see the file copied to the server machine using scp command. However my task got failed saying “xfusioncorp_official.zip is not found on backup server”. I had looked into the community group seems like lot of members faced the similar issue. Can you please look into it.
Below are the steps i have followed :
zip /backup/xfusioncorp_official.zip -r /var/www/html/official
scp /backup/xfusioncorp_official.zip clint@server:/backup/
chmod a+x official_backup.sh
ssh-keygen -t rsa
ssh-copy-id -i $HOME/.ssh/id_rsa.pub firstname.lastname@example.org
make sure ssh is working without password
run the script and verify in the backup folder & target machine.