Difference between rsync -r S1 S2 T and cp -r S1 S2 T

Nobuko Three nbko3 at yahoo.com
Tue Jun 2 07:28:39 GMT 2009

The manual says rsync can be used as an improved cp command. 

If S1 and S2 are (local) source files or directories and T is an (local)
existing directory, is it safe to think that
$ rsync -r S1 S2 T
does the same thing as
$ cp -r S1 S2 T
, assuming no trailing slashes in S1, S2?
View this message in context: http://www.nabble.com/Difference-between-rsync--r-S1-S2-T-and-cp--r-S1-S2-T-tp23827717p23827717.html
Sent from the Samba - rsync mailing list archive at Nabble.com.

More information about the rsync mailing list