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/