Copy only the differences in other structure

Matt McCutchen
Mon, 18 Feb 2008 21:39:21 -0000

On Mon, 2008-02-18 at 16:17 -0300, Edilson Azevedo
wrote:
> Directory 'foo' contain:
> file1
> file2
> file3
>
> Directory 'foo2' contain:
> file1
> file2
> file3
> file4
>
>  After apply the rsync, it's create this structure:
>
> Directory 'foo_diff' with the file:
> file4

rsync -r --compare-dest=../foo/ foo2/ foo_diff/

Matt