[tahoe-dev] Automatic Tahoe file repair
Kevin Reid
kpreid at mac.com
Sat Oct 17 04:36:59 PDT 2009
My local Tahoe node is configured for the volunteer grid.
This is a script I wrote I call "tahoe-repair-all":
------------------------------------------------------------------------
#!/bin/sh
for item in `tahoe list-aliases | cut -f 1 -d :`; do
echo '*** '"$item"
tahoe deep-check --repair --add-lease $item: | perl -pe 's/^/\t/'
echo
done
------------------------------------------------------------------------
This is my crontab entry for it:
------------------------------------------------------------------------
30 6 * * * . ~/.bashrc; tahoe-repair-all
------------------------------------------------------------------------
This is the email it sent me this morning:
------------------------------------------------------------------------
From: kpreid at 216-171-189-244.northland.net
Subject: Cron <kpreid at 216-171-189-244> . ~/.bashrc; tahoe-repair-all
Date: October 17, 2009 6:30:06 EDT
To: kpreid at 216-171-189-244.northland.net
*** family
done: 1 objects checked
pre-repair: 1 healthy, 0 unhealthy
0 repairs attempted, 0 successful, 0 failed
post-repair: 1 healthy, 0 unhealthy
*** publish
done: 5 objects checked
pre-repair: 5 healthy, 0 unhealthy
0 repairs attempted, 0 successful, 0 failed
post-repair: 5 healthy, 0 unhealthy
*** tahoe-illustration
done: 5 objects checked
pre-repair: 5 healthy, 0 unhealthy
0 repairs attempted, 0 successful, 0 failed
post-repair: 5 healthy, 0 unhealthy
------------------------------------------------------------------------
--
Kevin Reid <http://switchb.org/kpreid/>
More information about the tahoe-dev
mailing list