exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 147 discussion

Actual exam question from CompTIA's XK0-004
Question #: 147
Topic #: 1
[All XK0-004 Questions]

A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?

  • A. rsync -aHAX /share/* serverB:/newshare
  • B. dd if=/share/* of=serverB:/newshare
  • C. tar -cvf /share/* serverB:/newshare
  • D. mirrorlv /share/* serverB:/newshare
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nakres64
Highly Voted 4 years, 1 month ago
Correct answer is A rynsc. Question says all permissions and attributes. -H --> preserve hard links -A --> preserve permissions -X --> preserve extended attributes
upvoted 8 times
...
FilipIT
Highly Voted 4 years, 3 months ago
In my LAB rsync worked perfectly so i think "A" is correct answer
upvoted 6 times
...
DiaaEmara
Most Recent 2 years, 5 months ago
I used rsync -axXSAH to copy everything over. rsync -aHAX (add v for verbosity) makes sure that you preserve any link structure and x-attrs in the target folder while copying. Don't forget a means archive and preserves time, ownership and permissions already.
upvoted 1 times
...
phlagg
4 years, 2 months ago
Isn't rsync best for continuous copy? I would think C for a one-time move, which I think the question is asking.
upvoted 2 times
...
trusteme
4 years, 4 months ago
Wht not rsync
upvoted 4 times
...
jahute27
4 years, 5 months ago
https://blogs.oracle.com/alejandrovargas/using-tar-to-copy-unix-directory-trees-on-the-same-server-or-across-servers
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago