Search notes:

Shell command: rsync

Synching two directories

rsync -av --delete  $SRC  $DEST
-a turns on archive mode (recursive copy and preserving certain attributes of the source).
-v turns on increased verbosity
--delete deletes files in $DEST that are not present in $SRC.

See also

The Windows command Robocopy.exe
Shell commands

Index