BackupPC-users

Re: [BackupPC-users] Question about attrib file structure

2008-12-01 14:17:20
Subject: Re: [BackupPC-users] Question about attrib file structure
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
Date: Mon, 1 Dec 2008 11:14:04 -0800
Jeffrey,

Sorry about the delay in replying.  I've been really busy lately.

>  > 1. If a directory is *empty*, is there any reason for it to have an
>  >    attrib file?
>  >
>  >    Because in playing around with creating and deleting directory 
> contents, I
>  >    found that sometimes even after emptying directory contents, the
>  >    subsequent incremental backups may sometimes still have (empty)
>  >    attrib files.

I believe there is always an attrib file created.  It would be
a minor optimization not to write empty attrib files.

>  > 2. If not, can I safely erase any (empty) attrib file that has no files
>  >    associated with it?

Yes.  If there is no attrib file the necessary meta-data is created
by reading the directory.  If it is empty then the effect will be the
same as an empty attrib file.

>  > 3. Other than type=10 (delete), is there *any* reason for an attrib
>  >    file to contain an entry for a file that is not present in the 
> directory?

No other files should be in the attrib file: files that are there
plus type=10 (delete).

 >    Because, I have found some attrib files on my system in past backups that
>  >    have file entries with type 0 (i.e *not* type 10) yet there is no
>  >    file present in the directory.

After your file system corruption problem was fixed?

>  > 4. If not, can I safely *remove* any non type=10 attrib entry if the
>  >    corresponding file is not in the directory?

Yes.  But this shouldn't happen.

> One more question to add:
> 5. Are 'attrib' files also linked into the pool/cpool? If so, are they
> done the same way as regular data files?

Yes, they are pooled in the same way as regular files.

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>
  • Re: [BackupPC-users] Question about attrib file structure, Craig Barratt <=