[volunteergrid2-l] Check, if all files have been backupped

Christoph Langguth christoph at rosenkeller.org
Thu Mar 8 17:01:46 UTC 2012


Am 08.03.2012 17:32, schrieb Marco Tedaldi:
> Hello everyone
>
> I've just backed up my images to the volunteer grid. But I have the
> feeling, that some folder have not been backed up. I'm using tahoe backup.
> I've organized the images by date in directories.
>
> The structure is:
> image_folder/YYYY/YYYYMMDD_name/
>
> I think, that I did not backup whole years. What is the easiest way to
> check that?
>
I quickly wrote a little script to recursively list the content of a 
particular tahoe alias. This will obviously only tell you which files 
are there, without verifying if they actually contain what they should.
Maybe it's helpful.


#!/usr/bin/perl
use strict;
use warnings;

$|=1;

my $TAHOE = "tahoe";

die "Usage: tahoe-find.pl <alias>" unless $#ARGV == 0;
my $ALIAS = $ARGV[0];
$ALIAS =~ s/:$//;

&findRecursive("");
exit;

sub findRecursive {
	my ($dir) = @_;
	open LS, "$TAHOE ls -F $ALIAS:$dir|" or die $!;
	my @ls = <LS>;
	close LS;
	foreach my $f (@ls) {
		chomp $f;
		$f =~ s/\*$//;
		print $dir."$f\n";
		if ($f =~ /\/$/) {
			&findRecursive(${dir}.$f);
		}
	}
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6161 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://tahoe-lafs.org/cgi-bin/mailman/private/volunteergrid2-l/attachments/20120308/8d8db680/attachment.bin>


More information about the volunteergrid2-l mailing list