Women in Technology

Hear us Roar



Article:
  Automated Backups on Tiger Using rsync
Subject:   More issues with rsync
Date:   2005-07-24 09:33:36
From:   Alexander_Lamb
Hello,


Just tried again between a powerbook and an iMac both running latest Tiger OS. I mounted a share, typed the password, etc... and ran the following command:


sudo rsync -Eavb --delete --backup-dir="/Volumes/DATA-1/alamb_bck/rsync_bck" --exclude="alamb.sparseimage" /Volumes/DATA/Users/alamb "/Volumes/DATA-1/alamb_bck"


Goes well for one or two minutes (but still copying too much accross) and then crashes with:


alamb/Library/Caches/com.apple.AddressBook/MetaData/72F62263-1445-11D8-8E70-000A95CC81E4:ABPerson.abcdp
Invalid file index 1913126912 (count=29712)
rsync error: protocol incompatibility (code 2) at /SourceCache/rsync/rsync-20/rsync/sender.c(159)
rsync: writefd_unbuffered failed to write 103 bytes: phase "unknown" [generator]: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-20/rsync/io.c(909)


I also had many of those:


rsync: chgrp "/Volumes/DATA-1/alamb_bck/alamb/Library/Caches/Java Applets/cache/javapi/v1.0/file/bApplet.class-1195b694-2c622a6a.class" failed: Operation not supported (45)


Ok, I should have excluded the cache, but the symptom is the same.


Alex

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • More issues with rsync
    2006-04-19 03:51:15  gulivieri [View]

    i use rsync command on os x 10.4 to backup data on network volume (Lacie XP). the command was launch continuously (every ~300 s) by a script. In all the client machine the script gone rigth for some day, afterword the new file don't appear on Lacie disk. However from terminal i found on /Volumes two directory named DATA (the old one) and DATA-1 (new one), where:
    DATA don't contain all the folder but only the one relative to a single machine
    DATA-1 contain all the folders

    i had to rename the destination folder on the script, but i don't understand what's happen

    some advice?
  • More issues with rsync
    2006-03-28 18:33:56  avgill [View]

    Hey Alex, I'm seeing the same error on a Powerbook with RsyncX 2.1 archiving data from the laptop to a mounted SMB share.

    Did you ever find out what causes this? Just for the record, I'm using sudo to run the backup script so permissions shouldn't be an issue. Google hasn't been of much help so far besides just leading me to this discussion =/

    username/Desktop/dir1/contacts/oct13_2005.rge/Calendar/0ODKOK22JTCNLST5N2KKBAQBXJ
    Invalid file index 1970210816 (count=39213)
    rsync error: protocol incompatibility (code 2) at sender.c(562)
    rsync: writefd_unbuffered failed to write 69 bytes: phase "unknown": Broken pipe
    rsync error: error in rsync protocol data stream (code 12) at io.c(666)

    Thanks,

    Avtar
    • More issues with rsync
      2006-08-02 21:34:28  Flute [View]

      I had a similar problem on OS X 10.3 rsyncing to a samba share on my windows box.

      I was able to get things transferred by using --timeout flag in rsync. Set it as high as you need to avoid the errors. (30 or 60 worked for me.)
  • More issues with rsync
    2005-07-24 11:49:26  Corvus [View]

    Hi Alexander_Lamb. I have had similar problems when I try backing up files that I don't have read access to. The solution was running the rsync command as root, but it appears you are doing that with sudo. Can anyone think of another solution?

    I wanted to reiterate iikka's excellent suggestion given below to exclude cache files; that didn't work for you either?
    • More issues with rsync
      2005-08-30 15:26:53  vschmidt [View]

      For what it's worth, I'm having the same problem.
      Tiger 10.4.2
      rsync version 2.6.3 protocol version 28

      -Val
      • More issues with rsync
        2007-08-30 04:56:57  Blue80 [View]

        My problems resolved with upgrade to rsync 2.6.6 darwinports lart patch:

        http://rsync-lart.darwinports.com/

        (Just make sure to use the rsync it installs in /opt/local/bin)