nerdexam
CompTIACompTIA

XK0-005 · Question #1501

XK0-005 Question #1501: Real Exam Question with Answer & Explanation

The correct answer is C: rsync -a /data remote:/backup/. The command that will back up the directory /data and all its contents to /backup/data on a remote server named remote is rsync -a /data remote:/backup/. This command uses the rsync tool, which is a remote and local file synchronization tool. It uses an algorithm to minimize the

System Management

Question

A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

Options

  • Ascp -p /data remote:/backup/data
  • Bssh -i /remote:/backup/ /data
  • Crsync -a /data remote:/backup/
  • Dcp -r /data /remote/backup/

Explanation

The command that will back up the directory /data and all its contents to /backup/data on a remote server named remote is rsync -a /data remote:/backup/. This command uses the rsync tool, which is a remote and local file synchronization tool. It uses an algorithm to minimize the amount of data copied by only moving the portions of files that have changed. The -a option stands for archive mode, which preserves the permissions, ownership, timestamps, and symbolic links of the files. The /data argument specifies the source directory to be backed up, and the remote:/backup/ argument specifies the destination directory on the remote server. The rsync tool will create a subdirectory named data under /backup/ on the remote server, and copy all the files and subdirectories from /data on the local server.

Topics

#rsync#remote file transfer#directory backup#Linux commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions