System Management
A backup host, bk01, accepts SSH connections only on TCP port 2222. An administrator must copy /data/ to /backup/data/ on bk01 with rsync, preserving permissions, ownership and timestamps. Which command does this?
Show the answer
Correct answerD. rsync -a -e "ssh -p 2222" /data/ bk01:/backup/data/
The -e option sets the remote shell command, so "ssh -p 2222" makes rsync tunnel over SSH on the nonstandard port. --port applies only to connections to an rsync daemon, which is why it is tempting but wrong here; -p preserves permissions and takes no port, and -P means --partial --progress.