i’m trying day 10 challenge of 100 days but no matter what i do. the task will fail. do anyone know how to pass that task.
ssh steve@stapp02
mkdir -p /scripts
sudo sudo vi /scripts/blog_backup.sh
sudo chown steve:steve /scripts/
sudo chown steve:steve /scripts/blog_backup.sh
sudo chmod +x /scripts/blog_backup.sh
sudo mkdir -p /var/www/html/blog
sudo chown steve:steve /var/www/html/blog
sudo chmod -R 755 /var/www/html/blog
ssh-keygen -t rsa -b 2048
ssh-copy-id clint@stbkp01
cd /
ls -la
sudo chown clint:clint /backup/
sudo /scripts/blog_backup.sh
anyone done this ask please tell me how to do that.
I tried that several times, but it didn’t work for me. I don’t know why
Hi @ShammiNethupul
It worked fine on my side. I checked your script and didn’t see the step to copy the archive to the Nautilus Backup Server. Please try again, and if you still face issues, sharing a screenshot will be helpful.
1 Like
you may try it, I had done.
Step by Step Solution
On App Server 2
sh steve@stapp02 # here app server 2 password needed
mkdir -p /scripts # if not available
sudo sudo vi /scripts/blog_backup.sh
sudo chown steve:steve /scripts/ # give ownership to steve
sudo chown steve:steve /scripts/blog_backup.sh # give ownership to steve
sudo chmod +x /scripts/blog_backup.sh # give execute permission & just copy paste
sudo mkdir -p /var/www/html/blog # if not available
sudo chown steve:steve /var/www/html/blog # give ownership to steve
sudo chmod -R 755 /var/www/html/blog # give permission to steve
Make connection to backup server with app server 2
ssh-keygen -t rsa -b 2048
ssh-copy-id clint@stbkp01
On Backup Server
cd / ls -la sudo chown clint:clint /backup/ # here backup server password needed
Again, on App Server 2
Execute the script
sudo /scripts/blog_backup.sh
1 Like
Hi @jmazzini
Please share your linux script, we will check it.
I had the same issue. What is the problem? How to fix that.