shabang script still incorrect after following solution.
Please assist.
shabang script still incorrect after following solution.
Please assist.
Your script doesn’t copy recursively. Check man cp.
@DanielBoos
Solution I came up with are the following (Let me know if it’s wrong).
#!/bin/bash
cp -r /var/www/ /opt/www-backup/
Shabang solution within screenshot are what Kodekloud considered as correct but was still not been recognized as an answer.
I have redone question again with full details and also tested to see result (Screenshot below)
Kindly advise.
Thanks