My guess is it's the out-of-date rsync that ships with macOS, and I think
there may be other oddities with the macOS version. The version I built
from source is 3.1.3 and it seems to work fine. I have it in /usr/local/bin
which is earlier in $PATH than /usr/bin.

Robert Trevellyan


On Mon, Jan 23, 2023 at 10:31 AM Samual Flossie <fw664...@gmail.com> wrote:

> Robert - I couldn't get rsync to work. If you see something in the error
> messages in my initial note or steps to diagnose the issue, I will try to
> fix.
> I have rsync with everything else and like to use it... but in this case,
> tar worked and rsync isn't.
>
> On Mon, Jan 23, 2023 at 9:45 AM Robert Trevellyan <
> robert.trevell...@gmail.com> wrote:
>
>> Glad to know you got it working. Any reason you don't want to use rsync?
>> IIRC I built rsync from source because of the issues with the version that
>> ships with macOS.
>>
>> Robert Trevellyan
>>
>>
>> On Sun, Jan 22, 2023 at 7:17 PM Samual Flossie <fw664...@gmail.com>
>> wrote:
>>
>>> Robert - thanks for the suggestion.  suggestion works great!
>>>
>>> I got backuppc working with the mac's.
>>> XferMethod:  tar
>>> TarShareName:  /Users/*theuser*
>>> TarClientPath:  /usr/bin/tar
>>> TarClientCmd: $sshPath -q -x -n -l *theuser* $host env LC_ALL=C
>>> $tarPath -c -v -f - -C $shareName+ --totals
>>> TarClientRestoreCmd:  $sshPath -q -x -l *theuser* $host env LC_ALL=C
>>> $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName+
>>>
>>> On Sun, Jan 22, 2023 at 10:06 AM Robert Trevellyan <
>>> robert.trevell...@gmail.com> wrote:
>>>
>>>> For the ping issue you could try something like:
>>>> $Conf{PingPath} = '/usr/bin/nc'
>>>> $Conf{PingCmd} = '$pingPath -w 1 -z $host 22'
>>>>
>>>> Robert Trevellyan
>>>>
>>>>
>>>> On Sun, Jan 22, 2023 at 9:55 AM Samual Flossie <fw664...@gmail.com>
>>>> wrote:
>>>>
>>>>> I have several new mac's to add to the backups and have not been able
>>>>> to get them backing up.  Prefer to use rsync.
>>>>> This is existing backuppc 4.4.0 that has been running for a year+ and
>>>>> successfully works with linux and windows boxes.
>>>>>
>>>>> I can ssh successfully from backuppc server. ssh -l username clientip
>>>>> I set RsyncSshArgs to include $sshPath -l username for that clientIP
>>>>> and the scope of the backup is that user's files.
>>>>>
>>>>> XferMethod is rsync.
>>>>> I tried using the existing mac rsync (/usr/bin/rsync) but
>>>>> get errors in the log:
>>>>>
>>>>> bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0, 
>>>>> KeepOldAttribFiles = 0
>>>>> 2023-01-22 09:40:17 full backup started for directory /Users/username
>>>>> 2023-01-22 09:40:19 Got fatal error during xfer (rsync error: error in 
>>>>> rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.3.0])
>>>>> 2023-01-22 09:40:24 Backup aborted (rsync error: error in rsync protocol 
>>>>> data stream (code 12) at io.c(226) [Receiver=3.1.3.0])
>>>>> 2023-01-22 09:40:24 Removing empty backup #0
>>>>> 2023-01-22 09:40:24 BackupPC_backupDelete: removing #0
>>>>> 2023-01-22 09:40:24 BackupPC_backupDelete: No prior backup for merge
>>>>> 2023-01-22 09:40:24 BackupPC_refCountUpdate: computing totals for host 
>>>>> theClientIP
>>>>> 2023-01-22 09:40:24 BackupPC_refCountUpdate: host theClientIP got 0 
>>>>> errors (took 0 secs)
>>>>> 2023-01-22 09:40:24 BackupPC_refCountUpdate total errors: 0
>>>>> 2023-01-22 09:40:24 BackupPC_backupDelete: got 0 errors
>>>>> 2023-01-22 09:40:24 Finished BackupPC_backupDelete, status = 0 (running 
>>>>> time: 0 sec)
>>>>>
>>>>> Maybe I've got a flag wrong in RsyncSshArgs or RsyncArgs or the other 
>>>>> Full and Inc variables.  No overrides.
>>>>>
>>>>>
>>>>> Some googling and saw concerns that rsync version may have
>>>>> compatibility issues. Currently installed /usr/bin/rsync version 2.6.9
>>>>> protocol version 29.
>>>>>
>>>>> I installed updated rsync via brew on one the mac and now
>>>>> have /opt/homebrew/Cellar/rsync/3.2.7/bin/rsync. I set RsyncClientPath
>>>>> to /opt/homebrew/Cellar/rsync/3.2.7/bin/rsync and tried again and see same
>>>>> error.
>>>>>
>>>>> 2023-01-22 09:17:45 Got fatal error during xfer (rsync error: error in 
>>>>> rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.3.0])
>>>>> 2023-01-22 09:17:50 Backup aborted (rsync error: error in rsync protocol 
>>>>> data stream (code 12) at io.c(226) [Receiver=3.1.3.0]
>>>>>
>>>>>
>>>>> Since ping is disabled by default on ventura, I alleviate that check by 
>>>>> override $PingCmd to $pingPath -c 1 127.0.0.1. If you have suggestion on 
>>>>> better way to verify mac is online in an office environment, please share.
>>>>>
>>>>> Sammy
>>>>>
>>>>> _______________________________________________
>>>>> BackupPC-users mailing list
>>>>> BackupPC-users@lists.sourceforge.net
>>>>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>>>> Wiki:    https://github.com/backuppc/backuppc/wiki
>>>>> Project: https://backuppc.github.io/backuppc/
>>>>>
>>>> _______________________________________________
>>>> BackupPC-users mailing list
>>>> BackupPC-users@lists.sourceforge.net
>>>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>>> Wiki:    https://github.com/backuppc/backuppc/wiki
>>>> Project: https://backuppc.github.io/backuppc/
>>>>
>>> _______________________________________________
>>> BackupPC-users mailing list
>>> BackupPC-users@lists.sourceforge.net
>>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> Wiki:    https://github.com/backuppc/backuppc/wiki
>>> Project: https://backuppc.github.io/backuppc/
>>>
>> _______________________________________________
>> BackupPC-users mailing list
>> BackupPC-users@lists.sourceforge.net
>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:    https://github.com/backuppc/backuppc/wiki
>> Project: https://backuppc.github.io/backuppc/
>>
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    https://github.com/backuppc/backuppc/wiki
> Project: https://backuppc.github.io/backuppc/
>
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to