robin hammond wrote at about 01:20:37 -0500 on Saturday, January 15, 2022:
 > Update,
 > 
 > 
 > I'm told to not mess with RsyncClientCmd - it's "depricated" (no source) 
 > whatever.
It was part of v3. v4 uses RsyncSshArgs.

> 
 > So I changed this instead:
 > 
 > $Conf{RsyncSshArgs} = [
 > 
 >          '-e' , '$sshPath -i /home/backuppc/.ssh/backupc_cg5_id_ed25519 
 > root@$host ',
 > ]
 > 
 > fine, now it works, almost.
 > 
 > 
 > That said invocation of rsync ends up looking like this :
 > 
 > /usr/local/bin/rsync_bpc \
 > '--bpc-top-dir' \
 > '/vol0/www/backuppc/data/' \
 > '--bpc-host-name' \
 > 'hegemone.databit7.com' \
 > '--bpc-share-name' \
 > '/home/administrator' \
 > '--bpc-bkup-num' \
 > '0' \
 > '--bpc-bkup-comp' \
 > '3' \
 > '--bpc-bkup-prevnum' \
 > -1 \
 > '--bpc-bkup-prevcomp' \
 > -1 \
 > '--bpc-bkup-inode0' \
 > 5 \
 > '--bpc-log-level' \
 > 1 \
 > '--bpc-attrib-new' \
 >       '-e'\
 >       '/usr/bin/ssh -i /home/backuppc/.ssh/backupc_cg5_id_ed25519 
 > r...@phantom.databit7.com'      \
 >       '--rsync-path=/usr/bin/rsync'\
 >       '--super'\
 >       '--recursive'\
 >       '--protect-args'\
 >       '--numeric-ids'\
 >       '--perms'\
 >       '--perms'\
 >       '--owner'\
 >       '--group'\
 >       '-D'\
 >       '--times'\
 >       '--links'\
 >       '--hard-links'\
 >       '--delete'\
 >       '--delete-excluded'\
 >       '--one-file-system'\
 >       '--partial'\
 >       '--log-format=log: %o %i %B %8U%8G %9l %f%L'\
 >       '--stats'\
 >       '--checksum'\
 >       '--timeout=72000'\
 >       '--include=/home'\
 >       '--include=/home/administrator'\
 >       '--exclude=/*'\
 >       '--exclude=/home/*'\
 >       'phantom.databit7.com:/home/administrator/'\
 >       '/'
 > 
 > 
 > but rsync fails to function with the error
 > 
 > bash: phanton.databit7.com: command not found
 > 
 > rsync_bpc: connection unexpectedly closed (0 bytes received so far) 
 > [Receiver]
 > 
 > Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 
 > filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 5 inode
 > 
 > rsync error: error in rsync protocol data stream (code 12) at io.c(226) 
 > [Receiver=3.1.3.0]
 > 
 > 
 > This is hostname is added to the rsync args in a manner that causes 
 > phantom to try to execute it's own hostname after the sshd on login:
 > 
 > 
 > /BackupPC/lib/BackupPC/Xfer/Rsync.pm
 > 
 >              push(@$rsyncArgs, "$t->{hostIP}:$shareNameSlash", "/");
 > 
 > 
 > 
 > On 14/01/2022 07.22, robin hammond wrote:
 > >
 > >
 > > Greatings all, long time backuppc user, but I'm struggling to roll out 
 > > a more secure ssh system on my new install.
 > >
 > > On a new install of backupPC 4.4.0. I setup a host as follows:
 > >
 > >
 > > host                            dhcp user    moreUsers     # <--- do 
 > > not edit this line
 > > phantom.databit7.com           0       databit7
 > >
 > >
 > > The host is configured as such
 > >
 > > $Conf{XferMethod}='rsync';
 > > $Conf{BackupFilesOnly} =  [ '/home/administrator' ];
 > > $Conf{'RsyncShareName'}  = [ "/home/administrator" ] ;
 > > $Conf{BackupsDisable}   = 0 ;
 > > $Conf{rsyncPath} = "/opt/rsyncWrapper";
 > > $Conf{'RsyncClientCmd'} = '$sshPath -i 
 > > /home/backuppc/.ssh/backupc_id_ed25519  -l rewt $host $rsyncPath 
 > > $argList+';
 > >
 > > BackupPC has been restarted since the last edit. The rsyncPath is 
 > > abided by, but the RsyncClientCmd command has little bearing on the 
 > > command that gets run. The log generated is as follows:
 > >
 > > XferLOG file 
 > > /vol0/www/backuppc/data/pc/phantom.databit7.com/XferLOG.0.z created 
 > > 2022-01-14 12:04:57 Backup prep: type = full, case = 1, inPlace = 1, 
 > > doDuplicate = 0, newBkupNum = 0, newBkupIdx = 0, lastBkupNum = , 
 > > lastBkupIdx = (FillCycle = 0, noFillCnt = ) Running: /opt/rsyncWrapper 
 > > --bpc-top-dir /vol0/www/backuppc/data/ --bpc-host-name 
 > > phantom.databit7.com --bpc-share-name /home/administrator 
 > > --bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum -1 
 > > --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 --bpc-log-level 1 
 > > --bpc-attrib-new -e /usr/bin/ssh\ -l\ *root* 
 > > --rsync-path=/usr/bin/rsync --super --recursive --protect-args 
 > > --numeric-ids --perms --owner --group -D --times --links --hard-links 
 > > --delete --delete-excluded --one-file-system --partial 
 > > --log-format=log:\ %o\ %i\ %B\ %8U,%8G\ %9l\ %f%L --stats --checksum 
 > > --timeout=72000 --include=/home --include=/home/administrator 
 > > --exclude=/\* --exclude=/home/\* 
 > > phantom.databit7.com:/home/administrator/ / full backup started for 
 > > directory /home/administrator Xfer PIDs are now 3917442 This is the 
 > > rsync child about to exec /opt/rsyncWrapper Host key verification 
 > > failed. rsync_bpc: connection unexpectedly closed (0 bytes received so 
 > > far) [Receiver] Done: 0 errors, 0 filesExist, 0 sizeExist, 0 
 > > sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 
 > > sizeNewComp, 2 inode rsync error: unexplained error (code 255) at 
 > > io.c(226) [Receiver=3.1.3.0] Xfer PIDs are now Got fatal error during 
 > > xfer (No files dumped for share /home/administrator) Backup aborted 
 > > (No files dumped for share /home/administrator) BackupFailCleanup: 
 > > nFilesTotal = 0, type = full, BackupCase = 1, inPlace = 1, lastBkupNum 
 > > = Removing empty backup #0 Xfer PIDs are now 3917506 
 > > BackupPC_backupDelete: removing #0 BackupPC_backupDelete: No prior 
 > > backup for merge Xfer PIDs are now 3917510,3917506 
 > > BackupPC_refCountUpdate: host phantom.databit7.com got 0 errors (took 
 > > 0 secs) Xfer PIDs are now 3917506 Xfer PIDs are now Finished 
 > > BackupPC_backupDelete, status = 0 (running time: 0 sec) Xfer PIDs are 
 > > now Running BackupPC_refCountUpdate -h phantom.databit7.com -f on 
 > > phantom.databit7.com Xfer PIDs are now 3917524 
 > > BackupPC_refCountUpdate: host fantom.databit7.com got 0 errors (took 0 
 > > secs) Xfer PIDs are now Finished BackupPC_refCountUpdate (running 
 > > time: 0 sec) Xfer PIDs are now
 > >
 > > I can confirm that ssh channel is opened, but it doesn't use the key, 
 > > so the client gives up and hangsup.
 > >
 > > Where should these arguments be set to force ssh to use a given set of 
 > > arguments?
 > >
 > >
 > > TIA,
 > >
 > > Robin
 > >
 > >
 > >
 > > _______________________________________________
 > > 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