Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-07, 03:02
BOD Member
 
Join Date: Jan 2007
Posts: 66
Default Compare files from one server to another.

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
Reply With Quote
  #2 (permalink)  
Old 02-13-07, 03:29
BOD Member
 
Join Date: Jan 2007
Posts: 39
Default

Assuming we're talking about a Web (HTTP) server, we would need to crawl each one of the servers using a web crawler, gather the list of pages in each server and then compare the lists. ;)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.