LFCA practice question 3 of 15

An IT team needs to synchronize large amounts of data between two nodes on the company’s local network. This data changes daily and it is not feasible to copy the entire directory tree each time. Which is the best option to securely copy files in the most timely and efficient manner?

Full set: 60 questions

Domain System Administration Fundamentals

Answer options
A: rsync Correct answer
B: scp
C: fsync
D: netcp
Correct Answer:
A. rsync
Explanation

rsync is the ideal tool for this scenario. It is specifically designed for synchronizing files and directories between systems efficiently. Its core strength is its delta-transfer algorithm, which minimizes data transfer by sending only the differences between the source and destination files. This is crucial when dealing with large datasets that change daily, as it avoids re-copying entire unchanged files. When used over SSH (the default for remote operations), rsync provides a secure transport layer, fulfilling all requirements of the task in the most timely and efficient manner.

Why Incorrect

B. scp (secure copy) copies entire files. It is not efficient for synchronizing directories with minor changes, as it would re-transfer whole files instead of just the changed blocks.
C. fsync is a system call, not a user-level command for network transfer. It is used to commit file data from memory buffers to the physical storage device.
D. netcp is not a standard or widely recognized Linux utility for network file copying. Standard tools include scp, sftp, and rsync. ---

References

1. Official Vendor Documentation (man page): The rsync(1) Linux manual page describes the tool as a "fast, versatile, remote (and local) file-copying tool." It explicitly states, "It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination."

Source: rsync(1) Linux manual page, DESCRIPTION section.

2. University Courseware: MIT's "The Missing Semester of Your CS Education" course materials discuss remote machines and file synchronization. The lecture on Data Wrangling highlights rsync for its efficiency in transferring only the modified portions of files, contrasting it with tools like scp.

Source: MIT, The Missing Semester of Your CS Education, Lecture 6: Data Wrangling, "Remote Machines" section. (Available at https://missing.csail.mit.edu/2020/data-wrangling/)

3. Official Vendor Documentation (Red Hat): The Red Hat Enterprise Linux 8 documentation, in the "Managing systems" guide, covers basic system tasks. Chapter 27, "Copying files and directories," details the usage of scp for secure copying and rsync for synchronization, noting rsync's efficiency for repeated transfers.

Source: Red Hat Enterprise Linux 8 Documentation, Configuring basic system settings, Chapter 28, "Copying files and directories securely".

4. Peer-reviewed Academic Publication: The original technical report on the rsync algorithm provides the foundational basis for its efficiency. It details the delta-transfer process that makes it superior for synchronization tasks over simple copy protocols.

Source: Tridgell, A., & Mackerras, P. (1996). The rsync algorithm (Technical Report TR-CS-96-05). The Australian National University, Department of Computer Science. (Available via various academic archives).

Scroll to Top