Monthly Archives: March 2009

rsync vs. cp

rsync -a /path/to/bar/ /path/to/foo/ # => /path/to/foo/[contents of bar] rsync -a /path/to/bar /path/to/foo/ # => /path/to/foo/bar/[contents of bar]   cp -a /path/to/bar/ /path/to/foo/ # => /path/to/foo/bar cp -a /path/to/bar /path/to/foo/ # => /path/to/foo/bar why can’t cp have the same source behavior as rsync? btw, I found the solution on [...]
Posted in programming | Leave a comment