﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1331	--verify option for `tahoe backup`	chrysn	nobody	"tahoe backup will happily end its operation even if the files that are to be backupped are not present on any node.

there are two parts of this problem:

* the backupdb seems not to track introducer urls (e.g. when one backups the same directory to different clouds)
* caps the new version relies on are not verified

while the first could be un-fixable for all i know (that is, in case tahoe has no concept of ""different clouds""), for the second one i suggest the following:

* have a --verify option that takes four values:
 * none -- rely on caps remembered in backupdb to be present
 * shallow -- check for the existence of every cap remembered from backupdb
 * deep -- do a deep check on all caps used in the backup db
 * checksum -- calculate the data checksums of all files involved in re-using a cap, and compare to the reference cap (this requires equal convergence secrets)

the current implementation (i'm using 1.7.1, but the changelog doesn't mention anything relevant) does the equivalent of none, which is especially a problem together with the first problem mentioned above.

i'd suggest at least --verify=shallow to be default for backups; it has the advantage of keeping the O(1) network traffic advantage of the backupdb.

another switch should be created to configure whether verify misses are to be treated critical or should just be reported to stderr. (--verify-fatal or similar)"	defect	new	major	undecided	code-frontend-cli	1.7.1		tahoe-backup preservation backupdb gridid verify	amontero@…	
