i have done it like 10 time means nearly 8 hours
it is not completing, it says zip is not found, but it is present
I’ve done this one, and I think you’ll find this solution, customized for whatever they list as the directories in the problem statement, will solve the problem.
I was doing this task, i am getting this error, however, i can see the zip file on the backup_server at /backup location as you can see it in the screenshot.
Bash script:
#!/bin/bash
zip -r /backup/xfusioncorp_beta.zip /var/www/html/beta
scp /backup/xfusioncorp_beta.zip clint@stbkp01:/backup
commands:
yum install zip
vi /scripts/beta_backup.sh
chmod +x /scripts/beta_backup.sh
ssh-keygen -t rsa
ssh-copy-id clint@stbkp01
What am I doing wrong here?
Is it possible you’re running ssh-keygen and ssh-copy-id as root? This would be incorrect, since it will need to run as user “steve” on App Server 2 – the script needs to run as “steve”, which is how the grader will run it. Note that if you try to run the script as root, you’ll get the archive on the backup server as well. But the grader will not – it will run the script and the script will fail.
Thank you for the hint. Now it’s working. Thank you again

