Too bad the accepted answer forgets about deleted files.
Use one of these to compare (but not sync) two directory trees.
For size-only comparision:
rsync -n -avr --size-only --delete /abc/home/sample1/ server2:/abc/home/sample2/
If you want to compare both contents and size:
rsync -n -avrc --delete /abc/home/sample1/ server2:/abc/home/sample2/
–jeroen
via: diff – compare files in two directory on remote server using unix – Stack Overflow.