NAME

rrr-fsck -

SYNOPSIS

rrr-fsck [options] principalfile

OPTIONS

--dry-run|n

Does nothing, only prints what it would do.

--help|h

Prints a brief message and exits.

--remoteroot=s

If provided fsck will try to mirror missing files from this location. For remote locations requiring authentication you may need to set the environment variables USER and RSYNC_PASSWORD as well.

--verbose|v+

More feedback.

--yes|y

Consider all answers to asked questions to be yes.

DESCRIPTION

Compares disk contents with index contents and gathers files missing on local disk and files missing in local index.

If remoteroot is given missing files are fetched from remote.

Files on the local disk that have no counterpart in the index are considered obsolete and the user is asked for each file if the file should be deleted. And if the user confirms it will be deleted.

BUGS

There is a race condition when the tree or the index is manipulated while we are running. This implies that the result is only then 100% correct when disk and index are not changed while we are running.

There should be an option to declare the files on disk authoritative so that they are added to the index.