Question : On Nautilus storage server in Stratos DC there is a storage location /data which is used by different developers to keep their data (no confidential data). One of the developers mariyam has raised a ticket and asked for a copy of his/her data present in /data/mariyam directory on storage server. /home is an FTP location on storage server where developers can download their data. Below are the instructions shared by the system admin team to accomplish the task:
a. Make a mariyam.tar.gz compressed archive of /data/mariyam directory and move the archive to /home directory on Storage Server.
Please Note :- Perform the below commands based on your question server, user name & other details might differ . So please read task carefully before executing. All the Best 👍
1. At first login on storage server & Switch to root user
thor@jump_host
~$ ssh natasha@ststor01 The authenticity
of host 'ststor01 (172.16.238.15)' can't be established. ECDSA key
fingerprint is SHA256:OWmtNn2YObQR5vQ0uP6Jg+peCclJ+sB1VH/KuLeXJJc. ECDSA key
fingerprint is MD5:46:9f:1e:ac:41:e3:23:68:45:18:71:37:8c:f8:df:17. Are you sure you
want to continue connecting (yes/no)? yes Warning: Permanently
added 'ststor01,172.16.238.15' (ECDSA) to the list of known hosts. natasha@ststor01's
password: [natasha@ststor01
~]$ sudo su - We trust you have received the usual lecture from the local System Administrator.
It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great
responsibility. [sudo] password for natasha: [root@ststor01
~]# |
2. Run Below command to archive the folder ( check folder name in your task)
[root@ststor01
~]# ll /data total 4 drwxrwxrwx 2
root root 4096 Jul 5 11:14 mariyam [root@ststor01
~]# [root@ststor01
~]# tar -czvf mariyam.tar.gz
/data/mariyam/ tar: Removing
leading `/' from member names /data/mariyam/ /data/mariyam/nautilus2.txt /data/mariyam/nautilus3.txt /data/mariyam/nautilus1.txt [root@ststor01
~]# |
3. Move the tar file to /home
[root@ststor01
~]# ll total 8 -rw------- 1
root root 3415 Aug 1 2019 anaconda-ks.cfg -rw-r--r-- 1
root root 203 Jul 5 11:17 mariyam.tar.gz [root@ststor01
~]# [root@ststor01
~]# mv mariyam.tar.gz /home/ [root@ststor01
~]# |
4. Validate the task by listing the file exist in Home directory
[root@ststor01 ~]# ll /home/ total 12 drwx------ 1
ansible ansible 4096 Oct 15 2019
ansible -rw-r--r-- 1
root root 203 Jul
5 11:17 mariyam.tar.gz drwx------ 1
natasha natasha 4096 Jan 12 2020
natasha [root@ststor01
~]# |
5. Click on Finish & Confirm to complete the task successful
Happy Learning!!!!
0 Comments