rsync

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

  1. binba macrumors newbie

    Joined:
    Jul 23, 2010
    #1
    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!
     
  2. cqexbesd macrumors regular

    Joined:
    Jun 4, 2009
    #2
    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

    Joined:
    Jul 29, 2015
    #3
    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 65816

    Joined:
    Nov 5, 2010
    #4
    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

    Joined:
    Feb 2, 2008
    #5
    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

    Joined:
    Jul 29, 2015
    #6
    Hence I mentioned BSD first.

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

    Joined:
    Feb 2, 2008
    #7
    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

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

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

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

    Joined:
    Feb 2, 2008
    #11
    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 65816

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

    morespce54

    Joined:
    Apr 30, 2004
    Location:
    Around the World
    #13
    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.
     

Share This Page