If you are using a linux server and you want to compare the files from one server to another,say from local server to another one and the files that is not present in the server should be listed out in the excel file using Java or JSP program.
Here is the way:
you can use rysnc
sample command(but this is in same server):
rsync -avz --delete --include-from=filter.txt --exclude-from=filter.txt $SOURCE_HOST/ $DESTINATION_HOST/ >>$LOGFILE
then just read the log file of the rsync then write the files listed on the log file to your excel file.
Welcome to share your experience
