BackupPC-users

Re: [BackupPC-users] unclean pool

2009-10-02 10:37:13
Subject: Re: [BackupPC-users] unclean pool
From: Holger Parplies <wbppc AT parplies DOT de>
To: Tony Schreiner <schreian AT bc DOT edu>
Date: Fri, 2 Oct 2009 16:33:25 +0200
Hi,

Tony Schreiner wrote on 2009-09-30 14:46:09 -0400 [Re: [BackupPC-users] unclean 
pool]:
> On Sep 29, 2009, at 12:06 PM, Tony Schreiner wrote:
> >On Sep 28, 2009, at 10:00 PM, Holger Parplies wrote:
> >>Tony Schreiner wrote on 2009-09-28 20:01:24 -0400 [[BackupPC-users] unclean 
> >>pool]:
> >>>[...]
> >>>Today I looked at the pool directory and found that many (even
> >>>a majority) of the files there have a single link, shouldn't
> >>>BackupPC_nightly be removing those?
> >>
> >>yes, it should. Is BackupPC_nightly being run (check the log files
> >>under $LogDir)?

let me repeat that question, it was important:

*Is BackupPC_nightly actually being run?*

> >>What are the values of
> >>
> >>    $Conf{BackupSchedule}

Yes, that should of course be WakeupSchedule. Sorry about the typo. Note that
the '7' is in there twice. I don't know if that may be confusing BackupPC. I
don't think it should, but the code in question is confusing me right now :).

> I'm trying to investigate further why my cpool is (apparently) not  
> getting cleaned up.  I'm  looking at the code to BackupPC_nightly, but  
> I admit I'm not the l33test of perl programmers. I wonder if someone  
> familiar with the code can help me a bit.

Yes, but we should first make sure the code is in fact being run.

> The GetPoolStatus routine is using the find function (from Lib?) to  
> scan the pool.

Actually, it's the other way around. find() is using GetPoolStats() to scan
the pool.

What file system type is your pool on? Have you recently installed IO::Dirent?

> It appears in my case to enter each of the cpool/X/X  
> directories, but does not appear to go deeper.

How do you know? Is SElinux enabled? Do you notice anything special about the
permissions of the cpool/X/Y or cpool/X/Y/Z directories? Anything in the
system log files? Have you run an fsck?

> I'm not clean on what is supposed be happening here.

Well, BackupPC_nightly is supposed to traverse the pool :-). It should look at
all files under the starting directory ($TopDir/$pool/$dir - which is of the
form /.../cpool/X/Y) and queue all single-link files for deletion and chain
renumbering.

Regards,
Holger

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>