how to verify that copied data to remote system is identical with local data.

I have created simple shell script
#!/bin/sh

echo `date`; echo "Start ....
find . -mtime +95 -print > /tmp/files.txt

for file in `cat /tmp/files.txt`
do
echo "copying file - $file"
/usr/local/bin/scp -p -P 2222 $file remote.hostname:/file/path
echo "copid file - $file"
done
echo "End .... "

How to verify that i have copied data successfully to remote system.

Thanks
Nilesh

after you issue scp, check what does $? tell you

Run a checksum or md5sum on the local files and then run the same on the remote copied files. If the two match, the files are ok.

Is there any other way to verify expect md5sum ?