Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-10 Thread martin f krafft
also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.12.09.1538 +0100]:
   I did a test run of this tool and it took 12 days to run across the
   pool. I cannot take the backup machine offline for so long. Is it
   possible to run this while BackupPC runs in the background?
 
 It can run while backuppc is running though it will obviously miss
 some new files added by backuppc after you started running the
 program. My routine is non-destructive (it doesn't 'fix' anything) so
 it shouldn't conflict.

Oh, so how do I fix the problems it finds (there are plenty it
reports)?

 Or if you trust it to detect and fix it all in one step:
BackupPC_fixLinks.pl -f [ optional output file to capture all the
detections and status's]

Unfortunately, BackupPC_fixlinks.pl needs jLib.pm, which doesn't
seem to be in Debian's backuppc 3.1.0 :(


Btw, do you plan to track your very useful scripts in some sort of
VCS or integrate them with the BackupPC main source?

Thanks,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
auch der mutigste von uns hat nur selten den mut zu dem,
 was er eigentlich weiß.
 - friedrich nietzsche
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)
--
___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread martin f krafft
also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.11.17.0059 +0100]:
 I wrote two programs that might be helpful here:
 1. BackupPC_digestVerify.pl
If you use rsync with checksum caching then this program checks the
(uncompressed) contents of each pool file against the stored md4
checksum. This should catch any bit errors in the pool. (Note
though that I seem to recall that the checksum only gets stored the
second time a file in the pool is backed up so some pool files may
not have a checksum included - I may be wrong since it's been a
while...)

I did a test run of this tool and it took 12 days to run across the
pool. I cannot take the backup machine offline for so long. Is it
possible to run this while BackupPC runs in the background?

 2. BackupPC_fixLinks.pl
This program scans through both the pool and pc trees to look for
wrong, duplicate, or missing links. It can fix most errors.

And this?

How else do you suggest I run it?

Thanks,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
remember, half the people are below average.
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)
--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Jeffrey J. Kosowsky
martin f krafft wrote at about 09:53:25 +0100 on Thursday, December 9, 2010:
  also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.11.17.0059 
  +0100]:
   I wrote two programs that might be helpful here:
   1. BackupPC_digestVerify.pl
  If you use rsync with checksum caching then this program checks the
  (uncompressed) contents of each pool file against the stored md4
  checksum. This should catch any bit errors in the pool. (Note
  though that I seem to recall that the checksum only gets stored the
  second time a file in the pool is backed up so some pool files may
  not have a checksum included - I may be wrong since it's been a
  while...)
  
  I did a test run of this tool and it took 12 days to run across the
  pool. I cannot take the backup machine offline for so long. Is it
  possible to run this while BackupPC runs in the background?

It can run while backuppc is running though it will obviously miss
some new files added by backuppc after you started running the
program. My routine is non-destructive (it doesn't 'fix' anything) so
it shouldn't conflict.

  
   2. BackupPC_fixLinks.pl
  This program scans through both the pool and pc trees to look for
  wrong, duplicate, or missing links. It can fix most errors.
  
  And this?
I don't think i understand the question...
(note I posted a slightly updated version on the group last night)
  
  How else do you suggest I run it?
Look at the usage info ;)
Or if you trust it to detect and fix it all in one step:
   BackupPC_fixLinks.pl -f [ optional output file to capture all the
   detections and status's]

Or to do it sequentially:
   Detect:
   BackupPC_fixlinks.pl   [output file]
   Fix:
   BackupPC_fixlinks.pl  -l [output file]

--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Robin Lee Powell
On Thu, Dec 09, 2010 at 09:53:25AM +0100, martin f krafft wrote:
 also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.11.17.0059 
 +0100]:
  I wrote two programs that might be helpful here:
  1. BackupPC_digestVerify.pl
 If you use rsync with checksum caching then this program checks the
 (uncompressed) contents of each pool file against the stored md4
 checksum. This should catch any bit errors in the pool. (Note
 though that I seem to recall that the checksum only gets stored the
 second time a file in the pool is backed up so some pool files may
 not have a checksum included - I may be wrong since it's been a
 while...)
 
 I did a test run of this tool and it took 12 days to run across the
 pool. I cannot take the backup machine offline for so long. Is it
 possible to run this while BackupPC runs in the background?
 
  2. BackupPC_fixLinks.pl
 This program scans through both the pool and pc trees to look for
 wrong, duplicate, or missing links. It can fix most errors.
 
 And this?

I don't know about the first one, but BackupPC_fixLinks.pl can
*definitely* be run while BackupPC runs.

For serious corruption, you may want to grab the patch I posted a
few days ago; it makes the run *much* slower, but on the plus side
it will fix more errors.

OTOH, the errors it fixes only waste disk space, they don't actually
break BackupPC's ability to function at all.

-Robin

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which this parrot
is dead is ti poi spitaki cu morsi, but this sentence is false
is na nei.   My personal page: http://www.digitalkingdom.org/rlp/

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


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Jeffrey J. Kosowsky
Robin Lee Powell wrote at about 11:20:26 -0800 on Thursday, December 9, 2010:
  On Thu, Dec 09, 2010 at 09:53:25AM +0100, martin f krafft wrote:
   also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.11.17.0059 
   +0100]:
I wrote two programs that might be helpful here:
1. BackupPC_digestVerify.pl
   If you use rsync with checksum caching then this program checks the
   (uncompressed) contents of each pool file against the stored md4
   checksum. This should catch any bit errors in the pool. (Note
   though that I seem to recall that the checksum only gets stored the
   second time a file in the pool is backed up so some pool files may
   not have a checksum included - I may be wrong since it's been a
   while...)
   
   I did a test run of this tool and it took 12 days to run across the
   pool. I cannot take the backup machine offline for so long. Is it
   possible to run this while BackupPC runs in the background?
   
2. BackupPC_fixLinks.pl
   This program scans through both the pool and pc trees to look for
   wrong, duplicate, or missing links. It can fix most errors.
   
   And this?
  
  I don't know about the first one, but BackupPC_fixLinks.pl can
  *definitely* be run while BackupPC runs.
  
  For serious corruption, you may want to grab the patch I posted a
  few days ago; it makes the run *much* slower, but on the plus side
  it will fix more errors.

I would suggest instead using the version I posted last night...
It should be much faster though still slow and may avoid some issues...

  
  OTOH, the errors it fixes only waste disk space, they don't actually
  break BackupPC's ability to function at all.
  

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


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Robin Lee Powell
On Thu, Dec 09, 2010 at 03:03:37PM -0500, Jeffrey J. Kosowsky wrote:
 Robin Lee Powell wrote at about 11:20:26 -0800 on Thursday, December 9, 2010:
   On Thu, Dec 09, 2010 at 09:53:25AM +0100, martin f krafft wrote:
also sprach Jeffrey J. Kosowsky backu...@kosowsky.org [2010.11.17.0059 
 +0100]:
 I wrote two programs that might be helpful here:
 1. BackupPC_digestVerify.pl
If you use rsync with checksum caching then this program checks the
(uncompressed) contents of each pool file against the stored md4
checksum. This should catch any bit errors in the pool. (Note
though that I seem to recall that the checksum only gets stored the
second time a file in the pool is backed up so some pool files may
not have a checksum included - I may be wrong since it's been a
while...)

I did a test run of this tool and it took 12 days to run across the
pool. I cannot take the backup machine offline for so long. Is it
possible to run this while BackupPC runs in the background?

 2. BackupPC_fixLinks.pl
This program scans through both the pool and pc trees to look for
wrong, duplicate, or missing links. It can fix most errors.

And this?
   
   I don't know about the first one, but BackupPC_fixLinks.pl can
   *definitely* be run while BackupPC runs.
   
   For serious corruption, you may want to grab the patch I posted a
   few days ago; it makes the run *much* slower, but on the plus side
   it will fix more errors.
 
 I would suggest instead using the version I posted last night...
 It should be much faster though still slow and may avoid some
 issues...

Well, I meant that version *plus* my patch. :D

Will your new version catch the this has multiple hard links but
not into the pool error I was seeing?  (If so yay! and thank you!)

-Robin

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which this parrot
is dead is ti poi spitaki cu morsi, but this sentence is false
is na nei.   My personal page: http://www.digitalkingdom.org/rlp/

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


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Jeffrey J. Kosowsky
Robin Lee Powell wrote at about 12:06:24 -0800 on Thursday, December 9, 2010:
  On Thu, Dec 09, 2010 at 03:03:37PM -0500, Jeffrey J. Kosowsky wrote:
   Robin Lee Powell wrote at about 11:20:26 -0800 on Thursday, December 9, 
   2010:
 On Thu, Dec 09, 2010 at 09:53:25AM +0100, martin f krafft wrote:
  also sprach Jeffrey J. Kosowsky backu...@kosowsky.org 
   [2010.11.17.0059 +0100]:
   I wrote two programs that might be helpful here:
   1. BackupPC_digestVerify.pl
  If you use rsync with checksum caching then this program checks 
   the
  (uncompressed) contents of each pool file against the stored md4
  checksum. This should catch any bit errors in the pool. (Note
  though that I seem to recall that the checksum only gets stored 
   the
  second time a file in the pool is backed up so some pool files 
   may
  not have a checksum included - I may be wrong since it's been a
  while...)
  
  I did a test run of this tool and it took 12 days to run across the
  pool. I cannot take the backup machine offline for so long. Is it
  possible to run this while BackupPC runs in the background?
  
   2. BackupPC_fixLinks.pl
  This program scans through both the pool and pc trees to look for
  wrong, duplicate, or missing links. It can fix most errors.
  
  And this?
 
 I don't know about the first one, but BackupPC_fixLinks.pl can
 *definitely* be run while BackupPC runs.
 
 For serious corruption, you may want to grab the patch I posted a
 few days ago; it makes the run *much* slower, but on the plus side
 it will fix more errors.
   
   I would suggest instead using the version I posted last night...
   It should be much faster though still slow and may avoid some
   issues...
  
  Well, I meant that version *plus* my patch. :D

My version does what your patch posted a couple of days does only
faster  probably better (i.e. your version may miss some cases where
there are pool dups and unlinked pc files with multiple links).


  Will your new version catch the this has multiple hard links but
  not into the pool error I was seeing?  (If so yay! and thank you!)
  


I don't know what error you are referring to. My version simple
extends to also test pc files with more than one link and fix them as
appropriate though I haven't test it.

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


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-12-09 Thread Robin Lee Powell
On Thu, Dec 09, 2010 at 03:15:41PM -0500, Jeffrey J. Kosowsky wrote:
 Robin Lee Powell wrote at about 12:06:24 -0800 on Thursday,
 December 9, 2010:
   On Thu, Dec 09, 2010 at 03:03:37PM -0500, Jeffrey J. Kosowsky
   wrote:
Robin Lee Powell wrote at about 11:20:26 -0800 on Thursday,
December 9, 2010:
  On Thu, Dec 09, 2010 at 09:53:25AM +0100, martin f krafft
  wrote:
   also sprach Jeffrey J. Kosowsky backu...@kosowsky.org
   [2010.11.17.0059 +0100]:
I wrote two programs that might be helpful here:
1. BackupPC_digestVerify.pl
   If you use rsync with checksum caching then this
   program checks the (uncompressed) contents of each
   pool file against the stored md4 checksum. This
   should catch any bit errors in the pool. (Note
   though that I seem to recall that the checksum only
   gets stored the second time a file in the pool is
   backed up so some pool files may not have a
   checksum included - I may be wrong since it's been
   a while...)
   
   I did a test run of this tool and it took 12 days to run
   across the pool. I cannot take the backup machine
   offline for so long. Is it possible to run this while
   BackupPC runs in the background?
   
2. BackupPC_fixLinks.pl
   This program scans through both the pool and pc
   trees to look for wrong, duplicate, or missing
   links. It can fix most errors.
   
   And this?
  
  I don't know about the first one, but BackupPC_fixLinks.pl
  can *definitely* be run while BackupPC runs.
  
  For serious corruption, you may want to grab the patch I
  posted a few days ago; it makes the run *much* slower, but
  on the plus side it will fix more errors.

I would suggest instead using the version I posted last
night... It should be much faster though still slow and may
avoid some issues...
   
   Well, I meant that version *plus* my patch. :D
 
 My version does what your patch posted a couple of days does only
 faster  probably better (i.e. your version may miss some cases
 where there are pool dups and unlinked pc files with multiple
 links).

I repeat my assertion that you are my hero.  :)

-Robin

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which this parrot
is dead is ti poi spitaki cu morsi, but this sentence is false
is na nei.   My personal page: http://www.digitalkingdom.org/rlp/

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


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-16 Thread Jeffrey J. Kosowsky
martin f krafft wrote at about 19:16:52 +0100 on Wednesday, November 3, 2010:
  Hello,
  
  My filesystem holding the backuppc pool was corrupted. While e2fsck
  managed to fix it all and now doesn't complain anymore, I am a bit
  scared that the backuppc pool isn't consistent anymore.
  
  Is there a tool to check the consistency of the pool?
  
  Is there a tool to repair an inconsistent pool?
  

I wrote two programs that might be helpful here:
1. BackupPC_digestVerify.pl
   If you use rsync with checksum caching then this program checks the
   (uncompressed) contents of each pool file against the stored md4
   checksum. This should catch any bit errors in the pool. (Note
   though that I seem to recall that the checksum only gets stored the
   second time a file in the pool is backed up so some pool files may
   not have a checksum included - I may be wrong since it's been a
   while...)

2. BackupPC_fixLinks.pl
   This program scans through both the pool and pc trees to look for
   wrong, duplicate, or missing links. It can fix most errors.

The second program is on the wikki somewhere.
I will attach below a copy of the first program.
I find that the above two routines do a pretty good job of checking
for corruption in the pc and pool trees.

-

#!/usr/bin/perl
#
#
# BackupPC_digestVerify.pl
#   
#
# DESCRIPTION
#   Check contents of cpool and/or pc tree entries (or the entire tree) 
#   against the stored rsync md4 checksum digests (when available)
#
# AUTHOR
#   Jeff Kosowsky
#
# COPYRIGHT
#   Copyright (C) 2010  Jeff Kosowsky
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
#
# Version 0.1, released Nov 2010
#
#


use strict;
use Getopt::Std;

use lib /usr/share/BackupPC/lib;
use BackupPC::Xfer::RsyncDigest;
use BackupPC::Lib;
use File::Find;

use constant RSYNC_CSUMSEED_CACHE = 32761;
use constant DEFAULT_BLOCKSIZE = 2048;


my $dotfreq=100;
my %opts;
if ( !getopts(cCpdv, \%opts) || @ARGV !=1
 || ($opts{c} + $opts{C} + $opts{p}  1)
 || ($opts{d} + $opts{v}  1)) {
print STDERR EOF;
usage: $0 [-c|-C|-p] [-d|-v] [File or Directory]
  Verify Rsync digest in compressed files containing digests.
  Ignores directories and files without digests
  Only prints if digest does not match content unless verbose flag
  (firstbyte = 0xd7)
  Options:
-c   Consider path relative to cpool directory
-C   Entry is a single cpool file name (no path)
-p   Consider path relative to pc directory
-d   Print a '.' for every $dotfreq digest checks
-v   Verbose - print result of each check;

EOF
exit(1);
}

die(BackupPC::Lib-new failed\n) if ( !(my $bpc = BackupPC::Lib-new) );
#die(BackupPC::Lib-new failed\n) if ( !(my $bpc = BackupPC::Lib-new(, , 
, 1)) ); #No user check

my $Topdir = $bpc-TopDir();
my $root;
$root = $Topdir . /pc/ if $opts{p};
$root = $bpc-{CPoolDir}/ if $opts{c};
$root =~ s|//*|/|g;

my $path = $ARGV[0];
if ($opts{C}) {
$path = $bpc-MD52Path($ARGV[0], 1, $bpc-{CPoolDir});
$path =~ m|(.*/)|;
$root = $1; 
}
else {
$path = $root . $ARGV[0];
}
my $verbose=$opts{v};
my $progress= $opts{d};

die $0: Cannot read $path\n unless (-r $path);


my ($totfiles, $totdigfiles, $totbadfiles) = (0, 0 , 0);
find(\verify_digest, $path); 
print \n if $progress;
print Looked at $totfiles files including $totdigfiles digest files of which 
$totbadfiles have bad digests\n;
exit;

sub verify_digest {
return -200 unless (-f);
$totfiles++;
return -200 unless -s  0;
return -201 unless BackupPC::Xfer::RsyncDigest-fileDigestIsCached($_); 
#Not cached type (i.e. first byte not 0xd7); 
$totdigfiles++;

my $ret = BackupPC::Xfer::RsyncDigest-digestAdd($_, DEFAULT_BLOCKSIZE, 
RSYNC_CSUMSEED_CACHE, 2);  #2=verify
#Note setting blocksize=0, results in using the default blocksize of 2048 also, 
but it generates an error message
#Also leave out final protocol_version input since by setting it undefined we 
make it read it from the digest.
   

Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-04 Thread martin f krafft
also sprach Les Mikesell lesmikes...@gmail.com [2010.11.03.2156 +0100]:
 Yes, anything that is not linked by a current backup will be removed in 
 the nightly runs.

I might thus want to disable that cronjob for now.

 The more subtle problem is that the corruption may 
 have overwritten the contents of existing files - but I'm pretty sure 
 that a full run will detect any content differences and fix things up. 
 There would be a chance that it would miss something if blocks in the 
 middle of a file changed and you are using the --checksum-seed option 
 with rsync, though.  In that case it would use the cached checksums 
 appended to the files instead of verifying all the way through.

RsyncCsumCacheVerifyProb can help here too. I might just set it to
1.0

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
kermit: why are there so many songs about rainbows?
fozzy: that's part of what rainbows do.
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-03 Thread Carl Wilhelm Soderstrom
On 11/03 07:16 , martin f krafft wrote:
 Is there a tool to check the consistency of the pool?
 
 Is there a tool to repair an inconsistent pool?

Run full backups on all hosts, then BackupPC_nightly?

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-03 Thread Les Mikesell
On 11/3/2010 1:16 PM, martin f krafft wrote:
 Hello,

 My filesystem holding the backuppc pool was corrupted. While e2fsck
 managed to fix it all and now doesn't complain anymore, I am a bit
 scared that the backuppc pool isn't consistent anymore.

 Is there a tool to check the consistency of the pool?

The part that is important are the hardlinks from the files in the 
backup directories under pc to the correct contents, and there is 
probably no way to check or fix them.  There would be some chance that 
the corruption overwrote some content or fsck removed some if you had 
inodes claiming the same space.

 Is there a tool to repair an inconsistent pool?

I'd run new full backups as soon as practical. That will at least fix up 
anything missing in the latest run which is usually the most important.

-- 
   Les Mikesell
lesmikes...@gmail.com



--
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-03 Thread martin f krafft
also sprach Carl Wilhelm Soderstrom chr...@real-time.com [2010.11.03.2020 
+0100]:
 Run full backups on all hosts, then BackupPC_nightly?

also sprach Les Mikesell lesmikes...@gmail.com [2010.11.03.2022 +0100]:
 I'd run new full backups as soon as practical. That will at least
 fix up anything missing in the latest run which is usually the
 most important.

Yeah, that's surely a good idea. I was wondering mostly about
cleanup actually.

I assume BackupPC_nightly removes everything from the pool with
a link count == 1. Hence, the worst that could happen is that all
previous backups would be rendered invalid, no?

Thanks guys,

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
they that can give up essential liberty
 to obtain a little temporary safety
 deserve neither liberty nor safety.
  -- benjamin franklin
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)
--
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov___
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/


Re: [BackupPC-users] Filesystem corruption: consistency of the pool

2010-11-03 Thread Les Mikesell
On 11/3/2010 2:26 PM, martin f krafft wrote:

 I'd run new full backups as soon as practical. That will at least
 fix up anything missing in the latest run which is usually the
 most important.

 Yeah, that's surely a good idea. I was wondering mostly about
 cleanup actually.

 I assume BackupPC_nightly removes everything from the pool with
 a link count == 1. Hence, the worst that could happen is that all
 previous backups would be rendered invalid, no?

Yes, anything that is not linked by a current backup will be removed in 
the nightly runs.  The more subtle problem is that the corruption may 
have overwritten the contents of existing files - but I'm pretty sure 
that a full run will detect any content differences and fix things up. 
There would be a chance that it would miss something if blocks in the 
middle of a file changed and you are using the --checksum-seed option 
with rsync, though.  In that case it would use the cached checksums 
appended to the files instead of verifying all the way through.

-- 
   Les Mikesell
lesmikes...@gmail.com

--
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
___
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/