Hi Alexander,
Thank you for your answer, I am newbie so it was out of my mind to check
why the xfermethod would be rsync instead of rsyncd for the localhost.
So I changed it to rsyncd. Anyway it won't run .
I set up the rsyncd.conf and create on module :
[boot]
path = /boot
comment = all boot files to be backupc
I didn't put the auth user and password because after some try it say auth
failure and I prefer to troubelshoot it after resolving this issue
I am not sure what to put in the $Conf{RsyncShareName} but when I run
Backuppc-dump -i localhost, there is some errors in the output as you can
see below.
I printed all the output and underlined all the errors for more clarity
Backup type: type = incr, needs_full = 1, needs_incr = 1, lastFullTime =
1512601200, opts{f} = , opts{i} = 1, opts{F} =
cmdSystemOrEval: about to system /sbin/ping -c 1 localhost
cmdSystemOrEval: about to system /sbin/ping -c 1 localhost
CheckHostAlive: ran '/sbin/ping -c 1 localhost'; returning 0.020
XferLOG file /var/db/BackupPC/pc/localhost/XferLOG.153 created 2018-02-05
14:22:38
Backup prep: type = incr, case = 6, inPlace = 1, doDuplicate = 0,
newBkupNum = 153, newBkupIdx = 3, lastBkupNum = , lastBkupIdx = (FillCycle
= 0, noFillCnt = 0)
__bpc_progress_state__ backup share "/"
Running: /usr/local/bin/rsync_bpc --bpc-top-dir /var/db/BackupPC
--bpc-host-name localhost --bpc-share-name / --bpc-bkup-num 153
--bpc-bkup-comp 0 --bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1
--bpc-bkup-inode0 530710 --bpc-attrib-new --bpc-log-level 5 --super
--recursive --protect-args --numeric-ids --perms --owner --group -D --times
--links --hard-links --delete --delete-excluded --partial
--log-format=log:\ %o\ %i\ %B\ %8U,%8G\ %9l\ %f%L --stats -vv
--timeout=72000
--password-file=/var/db/BackupPC/pc/localhost/.rsyncdpw75225 --exclude=/dev
--exclude=/media --exclude=/mnt --exclude=/nonexistent --exclude=/proc
--exclude=/sys --exclude=/tmp --exclude=/usr/src/sys --exclude=/var/run
--exclude=/var/tmp --exclude=/var/db/BackupPC backuppc@localhost::/ /
incr backup started for directory /
started incr dump, share=/
Xfer PIDs are now 75234
xferPids 75234
This is the rsync child about to exec /usr/local/bin/rsync_bpc
cmdExecOrEval: about to exec /usr/local/bin/rsync_bpc --bpc-top-dir
/var/db/BackupPC --bpc-host-name localhost --bpc-share-name /
--bpc-bkup-num 153 --bpc-bkup-comp 0 --bpc-bkup-prevnum -1
--bpc-bkup-prevcomp -1 --bpc-bkup-inode0 530710 --bpc-attrib-new
--bpc-log-level 5 --super --recursive --protect-args --numeric-ids --perms
--owner --group -D --times --links --hard-links --delete --delete-excluded
--partial --log-format=log:\ %o\ %i\ %B\ %8U,%8G\ %9l\ %f%L --stats -vv
--timeout=72000
--password-file=/var/db/BackupPC/pc/localhost/.rsyncdpw75225 --exclude=/dev
--exclude=/media --exclude=/mnt --exclude=/nonexistent --exclude=/proc
--exclude=/sys --exclude=/tmp --exclude=/usr/src/sys --exclude=/var/run
--exclude=/var/tmp --exclude=/var/db/BackupPC backuppc@localhost::/ /
bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0, KeepOldAttribFiles
= 0
ERROR: The remote path must start with a module name not a /
bpc_sysCall_cleanup: doneInit = 1
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0
sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 530710 inode
Parsing done: nFilesTotal = 0
rsync error: error starting client-server protocol (code 5) at main.c(1541)
[Receiver=3.0.9.11]
rsync_bpc exited with fatal status 5 (1280) (rsync error: error starting
client-server protocol (code 5) at main.c(1541) [Receiver=3.0.9.11])
Xfer PIDs are now
xferPids
__bpc_progress_state__ post-cmd
Executing DumpPostUserCmd: /var/db/BackupPC/mailadmin.sh 0 localhost
cmdSystemOrEval: about to system /var/db/BackupPC/mailadmin.sh 0 localhost
send-mail: Cannot open smtp.irenala.edu.mg:25
Got fatal error during xfer (rsync error: error starting client-server
protocol (code 5) at main.c(1541) [Receiver=3.0.9.11])
cmdSystemOrEval: about to system /sbin/ping -c 1 localhost
cmdSystemOrEval: about to system /sbin/ping -c 1 localhost
CheckHostAlive: ran '/sbin/ping -c 1 localhost'; returning 0.082
Backup aborted (rsync error: error starting client-server protocol (code 5)
at main.c(1541) [Receiver=3.0.9.11])
__bpc_progress_state__ fail cleanup
BackupFailCleanup: nFilesTotal = 0, type = incr, BackupCase = 6, inPlace =
1, lastBkupNum =
BackupFailCleanup: inPlace with no new files... no cleanup
__bpc_progress_state__ fsck
Running BackupPC_refCountUpdate -h localhost -f on localhost
cmdSystemOrEval: about to system /usr/local/bin/BackupPC_refCountUpdate -h
localhost -f
Xfer PIDs are now 75249
xferPids 75249
BackupPC_refCountUpdate: host localhost #153: gotFsck = 1, gotDelta = ,
gotPoolCnt = 1, gotNoPoolCntOk =
BackupPC_refCountUpdate: processing host localhost #153 (fsck = 1)
__bpc_progress_state__ refCnt #153
__bpc_progress_state__ cntUpdate #153
BackupPC_refCountUpdate: processing host localhost #153 deltaFile
/var/db/BackupPC/pc/localhost/153/refCnt/poolCntDelta_0_0_0_75249 with
510160 entries
__bpc_progress_state__ rename #153
BackupPC_refCountUpdate: computing totals for host localhost
__bpc_progress_state__ sumUpdate 0/128
__bpc_progress_state__ sumUpdate 8/128
__bpc_progress_state__ sumUpdate 16/128
__bpc_progress_state__ sumUpdate 24/128
__bpc_progress_state__ sumUpdate 32/128
__bpc_progress_state__ sumUpdate 40/128
__bpc_progress_state__ sumUpdate 48/128
__bpc_progress_state__ sumUpdate 56/128
__bpc_progress_state__ sumUpdate 64/128
__bpc_progress_state__ sumUpdate 72/128
__bpc_progress_state__ sumUpdate 80/128
__bpc_progress_state__ sumUpdate 88/128
__bpc_progress_state__ sumUpdate 96/128
__bpc_progress_state__ sumUpdate 104/128
__bpc_progress_state__ sumUpdate 112/128
__bpc_progress_state__ sumUpdate 120/128
__bpc_progress_state__ rename total
BackupPC_refCountUpdate: host localhost got 0 errors (took 4 secs)
BackupPC_refCountUpdate total errors: 0
Xfer PIDs are now
xferPids
Finished BackupPC_refCountUpdate (running time: 5 sec)
Xfer PIDs are now
xferPids
dump failed: rsync error: error starting client-server protocol (code 5) at
main.c(1541) [Receiver=3.0.9.11]
I already tried to run rsyncd and it work but I don't know where the error
in my configuration .
Regards,
Hari
2018-01-30 16:52 GMT+03:00 Alexander Moisseev via BackupPC-users <
[email protected]>:
> On 30.01.2018 9:38, RAKOTONDRAINIBE Harimino Lalatiana wrote:
>
>> So I it seems hat the issue is about DNS lookup error: general failure
>> when I run ssh .
>>
>> backuppc@backup:/ % /usr/bin/ssh -v -x -l backuppc localhost /bin/foobar
>> OpenSSH_7.2p2, OpenSSL 1.0.2k-freebsd 26 Jan 2017
>> debug1: Reading configuration data /etc/ssh/ssh_config
>>
> ....
>
>> debug1: Server host key: ecdsa-sha2-nistp256
>> SHA256:7IBJcg+uURyKkFB/9QuGJoU9tgm4m+gBiiVG44+nvyY
>> DNS lookup error: general failure
>>
>
> I think it is normal. SSH client attempts to verify keys using DNS. See
> VerifyHostKeyDNS in the man ssh_config .
>
> .....
>
>> debug1: Authentications that can continue: publickey
>> debug1: Trying private key: /home/backuppc/.ssh/id_dsa
>> debug1: Trying private key: /home/backuppc/.ssh/id_ecdsa
>> debug1: Trying private key: /home/backuppc/.ssh/id_ed25519
>> debug1: No more authentication methods to try.
>>
>
> Here is the problem, it can't authenticate.
>
> Permission denied (publickey).
>>
>> But it's a bit confusing because as I understand the server connect to
>> himself when it try to backup the localhost so when the connection can't be
>> set up ?
>>
>> Regards,
>>
>> Hari
>>
>
> Why do you need ssh to backup localhost in the first place? You can
> connect directly to rsyncd.
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/