Lab 10 of 100 days of DevOps

There seems a bug in the lab 10. I have correctly wrote script yet I got an error that there is no file create under backup location of backup server.

Hi @Abhilashteja

It would have helped if you had shared the script you ran to copy the zip archive.

#!/bin/bash
zip -r /tmp/xfusioncorp_media.zip /var/www/html/media
scp -r /tmp/xfusioncorp_media.zip clint@stbkp01:/backup/

To copy the archive, you might have to generate an SSH key pair and copy it to stbkp01 server.

I can see the file got copied when I executed the script. However, when I clicked on check the file disappears suddenly.

Hi Santosh,
Yes, I did the same. I have also tried other time, yet faced the issue again.

I can see the results, however when I try to submit it says file not found.
Below is the script that I executed.

Hi @Abhilashteja

Take a look at this solution.
This should help.

Hi @Santosh_KodeKloud,

I have followed the script that shared. However, I see the same issue that the file copied for the first time but when I clicked on check it failed. Not sure, what’s going wrong and what checks that the system is performing.

Any suggestions here?