Re: [BackupPC-users] chroot failed

2019-11-07 Thread David Williams
Oli,

Thanks for the reply.  About 1 hour after I sent my email I realized that the 
issue was not with sudo, but with SSH and as you state below, the key.  Once I 
realized this I was able to get the login working without the password :)

Now, I am seeing if I have everything else configured correctly and trying to 
do a full back up.  Fingers crossed.

Regards,
_
Dave Williams

On Nov 7, 2019, 3:40 AM -0500, Oliver Sieber , wrote:
Dear David

Sorry for the late answer. I was quite busy. I try to write down the steps I 
did:

- In OS X System Preferences choose Sharing and  make sure you enabled remote 
login (I am pretty sure you already did this)

- I assume that you have a user backuppc on your host client. Make sure, that 
the user backuppc is able to log in by ssh without a pw. Otherwise it would not 
run.
(http://backuppc.sourceforge.net/faq/ssh.html)

- In OS X System Preferences choose Security and then the tab Privacy and  make 
sure that sshd and sshd-keygen-wrapper have full access to the hard disc. I use 
rsync only for my home folder. So eventuelly you have to add rsync to if you 
want to backup other system directories

- For rsync I installer homebrew (brew.sh). With this you can install a native 
rsync version with brew install rsync. I am not sure of backuppc works with the 
OS's native rsync.

- The images show my settings in the web frontend of backuppc








I hope this helps. But I am sure that the problem is that the user backuppc 
cannot login to your machine without a key.

Best regards
Oli

Am 07.11.2019 um 03:44 schrieb David Williams 
mailto:dwilli...@dtw-consulting.com>>:

So, I really need some help on this.  I am trying to set it up with rsync now 
instead of samba, but I am having issues.  I’ve gone through a couple of 
articles I found on the interweb but not quite there.

I have upgraded my Mac to rsync version 3.1.3, which I read you have to be on 
rsync 3.x.  I created a rsyncd.conf and I have put my 2 shares that I want to 
back up from my Mac in this file.
I also went through the ssh set up and created keys and swapped them with the 
client and server.

I also put my username in the sudoers file on my Mac.  I set it to NOPASSWD and 
also set it so that it can only use the rsync command.  So this is what I have 
in sudoers file:
dwilliams   ALL = (ALL) NOPASSWD: /usr/local/bin/rsync

When I try and test this out with the following command it is always prompting 
me for the password and I have no idea why.  Entering the password does provide 
the correct information.
ssh -l dwilliams davesmac sudo /usr/local/bin/rsync --version

I thought the line I had put in the sudoers file would ensure it would not 
prompt for a password.  What am I doing wrong and how can I get this working so 
that I can start backing up my Mac again?
Any help would be much appreciated.

Regards,
_
Dave Williams
Senior Oracle MDM & Financials Consultant

On Nov 1, 2019, 12:15 PM -0400, Dave Williams 
mailto:dwilli...@dtw-consulting.com>>, wrote:
Oliver,

It’s been a long time since I had to configure backuppc.  Can you point me in 
the right direction in regards to setting up the backup with rsync over ssh?

Regards,
_
Dave Williams
Senior Oracle MDM & Financials Consultant
Phone: +1 954 661 8862
On Oct 17, 2019, 7:24 AM -0400, Oliver Sieber 
mailto:oli...@sieber.me>>, wrote:
I would suggest to use rsync over ssh. It works pretty fine for me. I used to 
to use tar to backup the files from my mac. After the catalina upgrade it 
stopped working. Haven't found out why, since I was using gtar from Homebrew. 
Switching to rsync solved the problem.

Regards,
Oli

David Williams schrieb am 16.10.19 um 16:24:
Robert,

Thanks for that.  What commands would I need to give access to though?  I am 
connecting via smbclient from my Linux server.  Here is the SmbClientFullCmd:

$smbClientPath \\$host\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\ 
full -Tc$X_option - $fileList

Regards,
_
Dave Williams

On Oct 16, 2019, 9:41 AM -0400, Robert Trevellyan 
, wrote:
You probably need to make adjustments in System Preferences -> Security & 
Privacy -> Privacy -> Full Disk Access (on the client) to give the relevant 
commands the access they need.

Robert Trevellyan


On Tue, Oct 15, 2019 at 8:31 PM David Williams 
mailto:dwilli...@dtw-consulting.com>> wrote:
I am pretty sure that this particular issue started after the upgrade to macOS 
Catalina.

My backups are now failing when it comes to backing up my Documents directory 
with the error message of chroot failed.

Can someone help me troubleshoot and get this working again.  I did a google 
search but nothing that seem applicable.

Regards,
_
Dave Williams

_

Re: [BackupPC-users] very old full backup (large) before v4 migration

2019-11-07 Thread marki

Hey,

I believe the answer is (quoting from the doc about $Conf{FullKeepCnt}): 
"For V3 backups, the expiry settings have their original meanings." This 
is not repeatead for "FullKeepCntMin" but since that parameter is part 
of the expiry settings, I think it applies there too.


Result: Since there are V3 and V4 pools in play here, I believe the full 
dated March is the last full in V3 format. It will not be removed since 
FullKeepCntMin=1 and because of the above reasoning.


SO: I have now removed that very old backup and the V3 pool has dropped 
to 0, which is ok.


However, I do not understand the difference in display here. As you can 
see in my previous post below, the old V3 existing file count was very 
high (near the total file count). In V4 I do not ever see a high 
existing file count. Maybe in V3 the "existing" file count meant 
something different than in V4?


Thanks,
Marki


On 2019-10-31 14:44, marki wrote:

Hey,

Back in March we migrated from v3 to v4.

Looking at it today, backups look like shown below.

What is this full backup dated March still doing there? Why are the
following FULL backups apparently not containing much data? (they look
identical to the incrementals)

Thx,
Marki



Backup Summary

1042incrno  1   9/22 19:00  2.1 38.7
/backuppc/pc/srv01/1042
1041incrno  1   9/21 19:00  2.5 39.7
/backuppc/pc/srv01/1041
1040fullyes 0   9/20 18:55  5.1 40.7
/backuppc/pc/srv01/1040
1039incrno  1   9/19 20:00  2.3 41.7
/backuppc/pc/srv01/1039
1038incrno  1   9/18 20:00  2.2 42.7
/backuppc/pc/srv01/1038
1037incrno  1   9/17 20:00  2.2 43.7
/backuppc/pc/srv01/1037
1036incrno  1   9/16 20:00  2.2 44.7
/backuppc/pc/srv01/1036
1035incrno  1   9/15 19:00  2.1 45.7
/backuppc/pc/srv01/1035
1034incrno  1   9/14 19:00  2.9 46.7
/backuppc/pc/srv01/1034
1032incrno  1   9/12 20:00  3.0 48.7
/backuppc/pc/srv01/1032
1031incrno  1   9/11 20:00  2.7 49.7
/backuppc/pc/srv01/1031
804 fullyes 0   3/15 18:55  146.6   229.7   
/backuppc/pc/srv01/804

File Size/Count Reuse Summary

1042incr844003  9450.9  74.42   35  1.4 893 178.5
1041incr843138  9443.7  61.72   33  1.3 900 181.4
1040full842267  9439.4  30.95   32  1.2 855 186.6
1039incr841436  9428.1  67.34   59  18.1897 189.1
1038incr840564  9417.5  69.76   82  18.7896 182.8
1037incr839694  9414.7  70.26   2   0.0 885 168.5
1036incr838830  9413.4  69.73   29  1.1 928 175.8
1035incr837925  9412.2  74.70   1   0.0 883 167.5
1034incr837064  9411.0  53.78   1   0.0 892 173.2
1032incr835363  9408.4  52.86   0   0.0 888 166.4
1031incr834498  9411.2  57.74   2   0.0 886 169.9
804 full329267  6991.7  0.80328425  6971.9  862 30.8




___
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/