Discussion in 'Mac Programming' started by binba, Jul 15, 2015.

  1. binba macrumors newbie

    Jul 23, 2010
    I originally considered posting this at'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 ...
    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?

  2. cqexbesd macrumors regular

    Jun 4, 2009
    IIUC data sent this transfer.

    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.
  3. enedil macrumors newbie

    Jul 29, 2015
    You see - with that kind of questions it is almost always better to come to a BSD forum or even Linux one.
  4. shaunp macrumors 68000

    Nov 5, 2010
    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.
  5. subsonix macrumors 68040

    Feb 2, 2008
    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.
  6. enedil macrumors newbie

    Jul 29, 2015
    Hence I mentioned BSD first.

    After all, you can go ahead and install GNU tools:
    brew install coreutils findutils rsync
  7. subsonix macrumors 68040

    Feb 2, 2008
    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.
  8. enedil macrumors newbie

    Jul 29, 2015
    I even didn't try to help you. Why do you think I told you to get GNU rsync then?
  9. subsonix macrumors 68040

    Feb 2, 2008
    Because you mentioned it in your own post, and it doesn't make any sense at all out of context.
  10. enedil macrumors newbie

    Jul 29, 2015
    It is in context of thread, but out of context of your problem.
  11. subsonix macrumors 68040

    Feb 2, 2008
    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.
  12. shaunp macrumors 68000

    Nov 5, 2010
    True, the man pages are always a good place to start.
  13. morespce54 macrumors 65816


    Apr 30, 2004
    Around the World
    From what I see, your looking for a folder named
    inside your (destination) folder named:
    You likely want to check for
    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:

Share This Page