Copy only the differences in other structure

Matt McCutchen matt at mattmccutchen.net
Mon Feb 18 21:38:51 GMT 2008


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



More information about the rsync mailing list