nerdexam
CompTIA

XK0-005 · Question #159

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…

The correct answer is A. rsync -aHAX /share/* serverB:/newshare. -H --> preserve hard links -A --> preserve permissions -X --> preserve extended attributes

System Management

Question

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?

Options

  • Arsync -aHAX /share/* serverB:/newshare
  • Bdd if=/share/* of=serverB:/newshare
  • Ctar -cvf /share/* serverB:/newshare
  • Dmirrorlv /share/* serverB:/newshare

How the community answered

(54 responses)
  • A
    76% (41)
  • B
    9% (5)
  • C
    11% (6)
  • D
    4% (2)

Explanation

-H --> preserve hard links -A --> preserve permissions -X --> preserve extended attributes

Topics

#rsync#File Transfer#Permissions Management#Server Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice