ssh-copy-id clint@stbkp01
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/steve/.ssh/id_ed25519.pub”
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: Could not resolve hostname stbkp01: Name or service not known
Which lab is this for? Not all servers are available in every KKE lab, so I’ll need to know the full name of this lab to know if the backup server even should be available.
i am working in 100 days of Devops
Now i struct at Day 10 Linux bash script lap
In Day 10, I see the task is:
The production support team of xFusionCorp Industries is working on developing some bash scripts to automate different day to day tasks. One is to create a bash script for taking websites backup. They have a static website running on App Server 3 in Stratos Datacenter, and they need to create a bash script named blog_backup.sh which should accomplish the following tasks. (Also remember to place the script under /scripts directory on App Server 3).
a. Create a zip archive named xfusioncorp_blog.zip of /var/www/html/blog directory.
b. Save the archive in /backup/ on App Server 3. This is a temporary storage, as backups from this location will be cleaned on a weekly basis. Therefore, we also need to save this backup archive on Nautilus Storage Server.
c. Copy the created archive to Nautilus Storage Server server in /backup/ location.
d. Please make sure script won’t ask for password while copying the archive file. Additionally, the respective server user (for example, tony in case of App Server 1) must be able to run it.
e. Do not use sudo inside the script.
Note:
The zip package must be installed on given App Server before executing the script. This package is essential for creating the zip archive of the website files. Install it manually outside the script.
I suspect which app server used varies randomly, but you don’t use the Backup Server (stbkp01) for storing away the item; instead, you use the Storage Server (ststor01). Typically, if a task doesn’t use a given server, that server won’t be available, and may not even resolve in DNS, which is your case here.