QuestionQ13

System Administration Fundamentals

When using rsync to mirror a local directory to a remote server, what does the --delete option signify?

  • A Files absent from the remote directory will be restored from the local directory.
  • B Files present in the local directory, but not present in the remote directory, will be deleted.
  • C Files absent from the local directory will be restored from the remote directory.
  • D Files present in the remote directory, but not present in the local directory, will be deleted.
Explanation

The --delete option deletes extraneous files from destination directories. In a local-to-remote mirror, the remote directory is the destination, so files present remotely but absent locally are deleted.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!