Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

binba

macrumors newbie
Original poster
Jul 23, 2010
27
6
I originally considered posting this at apple.com's Unix forum, but with 1 post a week it's a rather sad (and unproductive) place... was hoping for your expertise:

I'm trying to use rsync to run a checksum comparison between two folders. Consider this behavior:

rsync -nrcvv --itemize-changes /Volumes/2748A/3_Elements/d_Video/c_Camera\ Originals/062315-301/BPAV/CLPR/EPSN0222_01 /Volumes/Untitled/BPAV/CLPR/EPSN0222_01
building file list ...
done
delta-transmission disabled for local transfer or --whole-file
cd+++++++ EPSN0222_01/
>f+++++++ EPSN0222_01/EPSN0222_01.MP4
>f+++++++ EPSN0222_01/EPSN0222_01.MP4 48000.pek
>f+++++++ EPSN0222_01/EPSN0222_01.SMI
>f+++++++ EPSN0222_01/EPSN0222_01I01.PPN
>f+++++++ EPSN0222_01/EPSN0222_01M01.XML
>f+++++++ EPSN0222_01/EPSN0222_01R01.BIM
total: matches=0 hash_hits=0 false_alarms=0 data=0

sent 308 bytes received 62 bytes 740.00 bytes/sec
total size is 52949308 speedup is 143106.24


About half a dozen things here don't make sense to me:
  1. What does the data sent/received signify in the -n mode? The data that would have been transfered, or the actual transfer?
  2. The file EPSN0222_01.MP4 48000.pek does not exist in the DEST folder. Why are its itemized changes identical to the other files?
  3. All the other files are identical (tested with md5 command). Why are they listed?
  4. Why 0 matches? Why 0 data?

Thanks!
 
  1. What does the data sent/received signify in the -n mode? The data that would have been transfered, or the actual transfer?

IIUC data sent this transfer.

  1. The file EPSN0222_01.MP4 48000.pek does not exist in the DEST folder. Why are its itemized changes identical to the other files?
  2. All the other files are identical (tested with md5 command). Why are they listed?
  3. Why 0 matches? Why 0 data?

Your command says to copy the first folder _into_ the second folder and as /Volumes/Untitled/BPAV/CLPR/EPSN0222_01/EPSN0222_01 doesn't exist then everything would have to be copied.
 
You see - with that kind of questions it is almost always better to come to a BSD forum or even Linux one.
 
I was about to say the same thing, have a look at some of the Linux forums, or even google 'rsync examples'. Anything to do with command line I find more help on the linux sites.
 
I was about to say the same thing, have a look at some of the Linux forums, or even google 'rsync examples'. Anything to do with command line I find more help on the linux sites.

Make sure it's the same version first. There are some Linuxism and Gnuism that doesn't neccissarily apply to the tool you use. Edit: for the same reason, prefer your local man page to an online one.
 
Hence I mentioned BSD first.

After all, you can go ahead and install GNU tools:
brew install coreutils findutils rsync
 
Hence I mentioned BSD first.

After all, you can go ahead and install GNU tools:
brew install coreutils findutils rsync

Yeah, but I didn't quote you..

It's not an issue with rsync, so it's completely pointless to install from somewhere else. Also installing GNU tools because you're too lazy to read the manual for your own versions is also a bit backwards.
 
Yeah, but I didn't quote you..

It's not an issue with rsync, so it's completely pointless to install from somewhere else. Also installing GNU tools because you're too lazy to read the manual for your own versions is also a bit backwards.
I even didn't try to help you. Why do you think I told you to get GNU rsync then?
 
It is in context of thread, but out of context of your problem.

I don't have a problem. "Hence I mentioned BSD first." Continues the discussion after my comment with shaunp, I said that the comment was not directed to you, I quoted someone else who mentioned Linux forums specifically for anything related to the command line. The general idea to install gnu tools to make things work that you found with google, is lazy.
 
Make sure it's the same version first. There are some Linuxism and Gnuism that doesn't neccissarily apply to the tool you use. Edit: for the same reason, prefer your local man page to an online one.
True, the man pages are always a good place to start.
 
From what I see, your looking for a folder named
Code:
EPSN0222_01
inside your (destination) folder named:
Code:
EPSN0222_01
You likely want to check for
Code:
rsync -nrcvv --itemize-changes /Volumes/2748A/3_Elements/d_Video/c_Camera\ Originals/062315-301/BPAV/CLPR/EPSN0222_01 /Volumes/Untitled/BPAV/CLPR
without the last:
Code:
EPSN0222_01
part.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.