Mystery solved. The defaults included --one-file-system. Removed that and all 
partitions are being backed up 😊

From: Mike Hughes
Sent: Monday, August 13, 2018 08:54
To: 'General list for user discussion, questions and support' 
<backuppc-users@lists.sourceforge.net>
Subject: RE: RsyncClientCmd --> RsyncSshArgs

Hi BackupPC users,

Just curious if anyone else has made the changes necessary to use a non-root 
user account in the 4.X versions and run into any difficulty with incomplete 
backups?

Thank you!

From: Mike Hughes
Sent: Friday, August 10, 2018 14:39
To: 
backuppc-users@lists.sourceforge.net<mailto:backuppc-users@lists.sourceforge.net>
Subject: RsyncClientCmd --> RsyncSshArgs

Transitioning from BPC 3.x to 4.x there seem to be some syntactic changes 
regarding rsync & ssh commands. I was able to follow documentation that I think 
lived on SourceForge where it was suggested to configure a non-root account for 
ssh’ing and running rsync under sudo. After some experimentation (and as I 
recall some frustration around “$argList” vs “$argList+”) I came up with the 
following which worked great in version 3.3:

RsyncClientPath: --> /usr/bin/rsync
RsyncClientCmd: --> $sshPath -q -x -l backuppc $host sudo $rsyncPath $argList+
RsyncClientRestoreCmd: --> $sshPath -q -x -l backuppc $host sudo $rsyncPath 
$argList+

I think the only change I made to Rsync[Restore]Args was to add 
--checksum-seed=32761

Now in ver 4.2.1 the variables have changed. This is what I’m able to make work 
so far:

RsyncBackupPCPath: --> /usr/bin/rsync_bpc
RsyncClientPath: --> sudo /usr/bin/rsync
RsyncSshArgs: --> -e
--> $sshPath -l backuppc

However something is definitely off because the backup is incomplete. Many 
files and folders are missing. The most obvious is /home folder:
[cid:image001.jpg@01D432E5.6CA52990]
[caption – the home folder is empty – contains zero users!]

This is the only reference to “home” in my exclusion list:

    '/home/windows',

because I want to skip a folder named /home/windows.

Any help appreciated. Since I saw previous requests for this info here is my 
redacted XferErr from the latest run. I also tried removing --protect-args from 
RsyncArgs and added charset = utf-8 to the client’s /etc/rsyncd.conf and 
restarted the service):

Running BackupPC_refCountUpdate -h hostname-loc -f on hostname-loc
Xfer PIDs are now 80158
BackupPC_refCountUpdate: host hostname-loc got 0 errors (took 1 secs)
Xfer PIDs are now
Finished BackupPC_refCountUpdate (running time: 1 sec)
Xfer PIDs are now
XferLOG file /var/lib/BackupPC//pc/hostname-loc/XferLOG.8.z created 2018-08-10 
14:13:12
Backup prep: type = full, case = 6, inPlace = 1, doDuplicate = 0, newBkupNum = 
8, newBkupIdx = 7, lastBkupNum = , lastBkupIdx =  (FillCycle = 0, noFillCnt = 0)
Running: /usr/bin/rsync_bpc --bpc-top-dir /var/lib/BackupPC/ --bpc-host-name 
hostname-loc --bpc-share-name / --bpc-bkup-num 8 --bpc-bkup-comp 3 
--bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 3790 
--bpc-attrib-new --bpc-log-level 1 -e /usr/bin/ssh\ -l\ backuppc 
--rsync-path=sudo\ /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 --exclude=\*access_log\* 
--exclude=.apdisk --exclude=cache/page --exclude=/dev --exclude=/share5 
--exclude=.DS_Store --exclude=\*.DS_Store --exclude=\*error_log\* 
--exclude=/home/windows --exclude=\*.lock --exclude=lost+found --exclude=/media 
--exclude=/mnt --exclude=\*modsec_audit\* --exclude=noback --exclude=no_backup 
--exclude=/opt --exclude=php/session --exclude=/proc --exclude=/run 
--exclude=/this_share --exclude=/moreshares --exclude=/sys 
--exclude=.TemporaryItems --exclude=.Thumbs.db --exclude=tiny_mce 
--exclude=tinymce --exclude=/tmp/ --exclude=.tmp --exclude=.Trashes 
--exclude=/var/backup --exclude=/var/cache --exclude=/var/myprog/logs/autossl 
--exclude=/var/empty/sshd --exclude=/var/lib/mlocate 
--exclude=/var/lib/php/session\* --exclude=/var/lib/waagent 
--exclude=/var/lib/yum/yumdb --exclude=/var/log --exclude=/var/run 
--exclude=/var/spool/at --exclude=/var/spool/clientmqueue 
--exclude=/var/spool/exim --exclude=/var/spool/mqueue 
--exclude=/var/spool/postfix --exclude=/var/tmp --exclude=\*.vhd hostname-loc:/ 
/
full backup started for directory /
Xfer PIDs are now 81916
This is the rsync child about to exec /usr/bin/rsync_bpc
********************************************************************************
NOTICE: Use of this system is protected and monitored
********************************************************************************
This system is the property of This Company, Inc. and may be accessed only
by authorized users. Unauthorized use may be subject to criminal prosecution.
...
********************************************************************************
Xfer PIDs are now 81916,81919
xferPids 81916,81919
[ skipped 8 lines ]
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 
sizeTotal, 4 filesNew, 14085 sizeNew, 4510 sizeNewComp, 3791 inode

Number of files: 2666
Number of files transferred: 4
Total file size: 30521825 bytes
Total transferred file size: 14085 bytes
Literal data: 5631 bytes
Matched data: 8454 bytes
File list size: 79264
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 4467
Total bytes received: 87346
sent 4467 bytes  received 87346 bytes  183626.00 bytes/sec
total size is 30521825  speedup is 332.43
DoneGen: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 2023 filesTotal, 
30521825 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 3790 inode
Xfer PIDs are now
Running BackupPC_refCountUpdate -h hostname-loc on hostname-loc
Xfer PIDs are now 81920
BackupPC_refCountUpdate: doing fsck on hostname-loc #8 (full) since 
$ConfRefCntFsck == 1
BackupPC_refCountUpdate: host hostname-loc got 0 errors (took 1 secs)
Xfer PIDs are now
Finished BackupPC_refCountUpdate (running time: 1 sec)
Xfer PIDs are now
------------------------------------------------------------------------------
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
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to