Linux Bash Scripts_1




Hi Team… I have performed all the action required to take the back up of the archive in the Nautilus backup server under the Task “Linux Bash Script”. Tile got saved in the Backup folder of the Nautilus Backup server . Still it is showing error . Pls help .

The key thing in this task is to make sure that you don’t need to be the root user in any part of the what the script will do. So, in your case you are creating the script on App Server 2, where the non-root user is steve. And the zip file will be delivered to the backup server as user clint. This means:

  • the script in /scripts on stapp02 will run as “steve”
  • therefore, the /backup directory needs to be writeable by “steve”
  • scp will need to run as steve, and be able to write at the far end as clint. So:
    • The key pair used to do scp needs to be installed under ~steve/.ssh
    • The /backup directory on the backup server needs to be writable by clint.

So you need to run ssh-keygen as steve, make /backup on stapp02 belong to steve, and make /backup on the backup server belong to clint.