ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 191 - XK0-005 discussion

Report
Export

An administrator would like to mirror the website files on the primary web server, www1, to the backup web server, www2. Which of the following commands should the administrator use to most efficiently accomplish this task?

A.
[wwwl ] rsync ---a ---e ssh /var/www/html/ user1@www2 : /var/www/html
Answers
A.
[wwwl ] rsync ---a ---e ssh /var/www/html/ user1@www2 : /var/www/html
B.
[ wwwl ] scp ---r /var/www/html user1@www2 : / var/www/html
Answers
B.
[ wwwl ] scp ---r /var/www/html user1@www2 : / var/www/html
C.
[www2 ] cd /var/www/html; wget ---m http: //wwwl/
Answers
C.
[www2 ] cd /var/www/html; wget ---m http: //wwwl/
D.
[wwwl ] cd /var/www/html && tar cvf ---
Answers
D.
[wwwl ] cd /var/www/html && tar cvf ---
Suggested answer: A

Explanation:

To mirror the website files on the primary web server, www1, to the backup web server, www2, the administrator can use the commandrsync -a -e ssh /var/www/html/ user1@www2:/var/www/html(A). This will synchronize all files and directories under/var/www/html/on www1 to/var/www/htmlon www2 using ssh as the remote shell. The-aoption will preserve all attributes and permissions of the files. The other commands will not mirror the website files, but either copy them once, download them from a web server, or archive them.Reference:

[CompTIA Linux+ Study Guide], Chapter 12: Troubleshooting Linux Systems, Section: Synchronizing Files with rsync

[How to Use rsync Command in Linux]

asked 02/10/2024
Vusani Nedzungani
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first