Linux

rsync

DestructiveSync (rsync)

rsync -avz <src> <dest>

Fast incremental copy/sync; --delete mirrors; works over SSH.

Examples

  • rsync -avz ./data/ user@srv:/data/Transfer only changes

Syntax

rsync -avz [--delete] <src> <dest>

Before you run it

--delete removes extra files at the destination.

Used when you see

Back up / restore
3
Sync as backup-avz incremental
See the whole flow →

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store