Re: [BackupPC-users] Outdated Files in Backup?

2023-11-24 Thread jbk

On 11/14/23 14:09, Christian Völker wrote:

Hi,

I have BackupPC 4.x running on a Debian system. Works like 
a champ since years now.


One of my clients is an Apple Mac with current up-to-date 
MacOS. rsync is installed:


username@macos Documents % rsync --version
rsync  version 2.6.9  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
So far it works fine. It does the backupsand all is good. 
I am backing up the Users-Folder as "$RsyncShareName": 
"/Users/username" and excluded some unneeded directories.


See macos.pl:
$Conf{BackupPCNightlyPeriod} = 1;
$Conf{RsyncShareName} = [
   '/Users/username'
];
$Conf{RsyncSshArgs} = [
   '-e',
   '$sshPath -l username'
];

In reviewing again your settings I see that you have the 
nightly period configured as a per host value to do a full 
traverse as I do, but for my system this is configured on 
the server and not by client. I also see that your:


'$sshPath -l username'

lists username. For my setup that username is backuppc for 
all clients. Do you have different usernames configured for 
each client?


One thing I've noticed in the nightly process is that even 
with the setting to traverse the whole pool in one night it 
seems that I'll get a big prune (4-5) G's late in the weekly 
cycle.


--
Jim KR

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


Re: [BackupPC-users] Outdated Files in Backup?

2023-11-24 Thread jbk

On 11/15/23 05:26, Christian Völker wrote:

Hi,

yes, the latest full backup shows files which have been 
deleted months ago. At the time of backing up the client 
they did not exist on the client!


For testing I did a new "full" backup.
It has the same old files in it :\

So I created a new host (by IP instead of name), copied 
the "macosclient.pl" to "$IP.pl", reloaded backuppc and 
staarted a new backup on the IP-based host. This backup 
now only has the files which really do exists on the client.



Looks like there is something broken in the inventory of 
the backups of this host.


Any better idea instead of simply removeing all backups 
from this host and start a new series?


/KNEBB

Am 14.11.23 um 20:34 schrieb Norman J. Goldstein:
Are you saying that your full backup, 666, contains files 
that *were* not in your local directory at the time of 
the backup?



Here is my speculation.

Your BackupPC_nightly is configured to traverse only a 
portion of the pool each night for all of the machines 
backed up and is not proceeding far enough to identify the 0 
link count for the now deleted file.
For full backups BackupPC does a comparison of files already 
in the pool to those physically on the client and if a file 
already exists in the pool, instead of downloading the 
entire file again it increments the file count associated 
with this machine and moves on. For files that nolonger 
exist on the client machine it decrements the file count to 
zero but does not immediately delete it from the client pool 
count. The next time BackupPC_nightly runs, assuming it 
traverses the whole pool, it removes the files that have a 
zero count associated with that client.
In the documentation this is covered in the section headed 
"BackupPC Design". I had to read this section several times 
to understand how BackupPC_nightly works and also the 
config.pl related to nightly. My pool is I think very small 
so I have the nightly configured to traverse the entire pool 
each time it runs at the beginning of the backup schedule 
each day.


If I've got this wrong then I think those who do know will 
now clarify my miss conception.



--
Jim KR

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