LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2011, 07:13 AM   #1
system11
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
rsync showing wrong output


Iam comparing 2 filesystem using the below command.


rsync -navrz --exclude=logs/* /opt/otm/ glrrd@105.78.7.100:/opt/otm/


The output showing the files which are same in size and timestamp that are to be sync.

Iam using rsync 2.6.3 version so i dont have itemize changes option to debug the problem.

Is there anyway i can find the how rsync is finding the difference between the 2 filesytem

Ex: filesystem1


-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 FinJ-code_2003-10-22_12h17_CEST+0200.jar
-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 finj.jar
-rw-rw-r-- 1 glog glog 954987 Nov 26 2009 jakarta-taglibs-standard-1.1.2.zip
-rw-rw-r-- 1 glog glog 4061606 Nov 26 2009 jaxen-1.1.1.zip
-rw-rw-r-- 1 glog glog 14022975 Nov 26 2009 openmap-4.5.4.zip
-rw-rw-r-- 1 glog glog 387328 Nov 26 2009 standard-1.1.2-patched-jaxen-1.1.jar
-rw-rw-r-- 1 glog glog 1394659 Nov 26 2009 struts-1.2.7-lib.zip
-rw-rw-r-- 1 glog glog 5736238 Nov 26 2009 velocity-1.4.zip


Filesystem 2;

-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 FinJ-code_2003-10-22_12h17_CEST+0200.jar
-rw-rw-r-- 1 glog glog 39132 Nov 26 2009 finj.jar
-rw-rw-r-- 1 glog glog 954987 Nov 26 2009 jakarta-taglibs-standard-1.1.2.zip
-rw-rw-r-- 1 glog glog 4061606 Nov 26 2009 jaxen-1.1.1.zip
-rw-rw-r-- 1 glog glog 14022975 Nov 26 2009 openmap-4.5.4.zip
-rw-rw-r-- 1 glog glog 387328 Nov 26 2009 standard-1.1.2-patched-jaxen-1.1.jar
-rw-rw-r-- 1 glog glog 1394659 Nov 26 2009 struts-1.2.7-lib.zip
-rw-rw-r-- 1 glog glog 5736238 Nov 26 2009 velocity-1.4.zip

When iam running the rsync from filesytem1 it is showing to sync all the file in filesystem1 to filesystem2 when both the files looks same in size and timestamp

Last edited by system11; 02-16-2011 at 10:08 AM.
 
Old 02-16-2011, 08:08 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I don't understand what
Quote:
In few cases,It showing the files to rsync whic are same in size and timestamp.
means.

wsdl4j-bin-1.4.zip probably already existed on filesystem2, and you are not passing any of the --delete options to rsync, so I don't see any unexpected behavior here.
 
Old 02-16-2011, 08:56 AM   #3
system11
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Original Poster
Rep: Reputation: 0
delete will delete files that don't exist on the sending side.

Suppose if the same file is present in both the filesystems then it should not copy the same file to the receiving file system.


File which are same in size and timestamp.
 
Old 02-17-2011, 07:38 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Don't use -v as option, it will list all files. Without it you will get a list of intended changes in the dry run.

Nevertheless you could compile a more recent rsync from scratch and put it in your ~/local/rsync-3.0.7 or similar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nmap showing wrong information sysrez Linux - Networking 2 10-17-2010 01:36 AM
rsync showing unocode errors mirror51 Linux - Newbie 3 04-30-2010 12:43 PM
rsync uses wrong directory, has wrong size but right file count? brianpbarnes Linux - Software 1 02-23-2009 06:48 PM
RSYNC - What Am I Doing Wrong? carlosinfl Linux - General 3 09-05-2007 05:28 PM
df showing wrong output samac Slackware 9 12-08-2004 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration