100 Days of DevOps - Day 10

here in the 10th day tasks for 100 days of DevOps, even if I gave the correct commands, it says - ‘xfusioncorp_news.zip’ not found under ‘/backup’ on Backup Server.


but the zip file is available on the backup folder on the backup server.

can anyone please help me to find a solution

I have followed this example (100-Days-Of-DevOps-KodeKloud-Challenges-Solutions/Day 10: Linux Bash Scripts at main · MelkiMeriem/100-Days-Of-DevOps-KodeKloud-Challenges-Solutions · GitHub) , still it says zip file not found on the backup server.

Can you upload a screen shot of the commands that you executed?

ssh banner@stapp03
sudo yum install -y zip
mkdir -p /scripts
vi /scripts/official_backup.sh

-----insert the below line in the script file
#!/bin/bash
zip -r /backup/xfusioncorp_official.zip /var/www/html/official

scp /backup/xfusioncorp_official.zip clint@stbkp01:/backup


ssh-keygen
ssh-copy-id clint@stbkp01

chmod +x /scripts/official_backup.sh

/scripts/official_backup.sh

in my previous code, after logged into the App server 3, I tried the code as a sudo user
sudo su -
now I have tried without sudo su -, it works
Thanks anyway

2 Likes