rsync

noun

say it: “AR-sink” /ˈɑrsɪŋk/

A command that copies folders, and on later runs copies only what's new or changed, on one computer or between two.

What does rsync do?

rsync copies a folder, and the next time copies only what's new or changed, so a nightly backup takes seconds. It works on one computer or between two over SSH. A slash after the source copies what's inside it; -n rehearses without copying.

rsync -av school-work/ backup-drive/          # copies everything the first time
rsync -av school-work/ backup-drive/          # next time: only what changed
rsync -av site/ bookclub:bookclub-site/       # to another computer

In a sentence

  • “The second rsync run copied nothing, because nothing had changed.”
  • “Sam sends the site to the server with rsync over SSH.”

Level: Journeyman · More Unix terms at this level

Updated