public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: Fighting bit rot
Date: Tue, 8 Jan 2013 18:42:34 +0200	[thread overview]
Message-ID: <20130108184234.65037a18@khamul.example.com> (raw)
In-Reply-To: <50EC4660.5090208@binarywings.net>

On Tue, 08 Jan 2013 17:16:32 +0100
Florian Philipp <lists@binarywings.net> wrote:

> Am 08.01.2013 08:55, schrieb Alan McKinnon:
> > On Tue, 08 Jan 2013 08:27:51 +0100
> > Florian Philipp <lists@binarywings.net> wrote:
> > 
> [...]
> >>
> >> As I said above, the point is that I need to detect the error as
> >> long as I still have a valid backup. Professional archive
> >> solutions do this on their own but I'm looking for something
> >> suitable for desktop usage.
> > 
> > rsync might be able to give you something close to what you want
> > easily
> > 
> > Use the -n switch for an rsync between your originals and the last
> > backup copy, and mail the output to yourself. Parse it looking for
> > ">" and "<" symbols and investigate why the file changed.
> > 
> > This strikes me as being a very easy solution that you could use
> > reliably with a suitable combination of options. 
> > 
> > 
> 
> Hmm, good idea, albeit similar to the `md5sum -c`. Either tool leaves
> you with the problem of distinguishing between legitimate changes
> (i.e. a user wrote to the file) and decay.
> 
> When you have completely static content, md5sum, rsync and friends are
> sufficient. But if you have content that changes from time to time,
> the number of false-positives would be too high. In this case, I
> think you could easily distinguish by comparing both file content and
> time stamps.
> 
> Now, that of course introduces the problem that decay could occur in
> the same time frame as a legitimate change, thus masking the decay. To
> reduce this risk, you have to reduce the checking interval.


I think your basic problem is that you are trying to detect a rare
event (corruption) that looks exactly like a common event (edits you
intended to make)

I don't know how to tell these apart except by somehow recording which
files have been written to - inotify is useful for this - and removing
those from the list of things rsync says have changed.

All of which leads to a massively complex lump of code that is sure to
cause many more problems than it is designed to solve....

I'm afraid I don't have any real solution to offer.



-- 
Alan McKinnon
alan.mckinnon@gmail.com



  reply	other threads:[~2013-01-08 16:48 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 20:11 [gentoo-user] OT: Fighting bit rot Florian Philipp
2013-01-07 21:07 ` Paul Hartman
2013-01-07 22:05   ` Florian Philipp
2013-01-07 21:33 ` Michael Mol
2013-01-07 22:10   ` Florian Philipp
2013-01-07 23:20 ` Alan McKinnon
2013-01-08  7:27   ` Florian Philipp
2013-01-08  7:55     ` Alan McKinnon
2013-01-08 16:16       ` Florian Philipp
2013-01-08 16:42         ` Alan McKinnon [this message]
2013-01-08 17:41         ` Pandu Poluan
2013-01-08 19:02           ` Florian Philipp
2013-01-09  2:55             ` Pandu Poluan
2013-01-08 19:53           ` [gentoo-user] " Grant Edwards
2013-01-08 20:30             ` Florian Philipp
2013-01-08 21:45             ` Alan McKinnon
2013-01-08 22:15               ` Grant Edwards
2013-01-08 23:37                 ` Alan McKinnon
2013-01-09  2:47                   ` Grant Edwards
2013-01-09  8:31                     ` Alan McKinnon
2013-01-09 14:48                       ` Grant Edwards
2013-01-09 15:36                         ` Holger Hoffstaette
2013-01-09 16:32                           ` Pandu Poluan
2013-01-09 16:42                           ` Grant Edwards
2013-01-09 20:52                         ` Alan McKinnon
2013-01-09 20:53                         ` Alan McKinnon
2013-01-08 15:29     ` Grant Edwards
2013-01-08 15:42       ` Michael Mol
2013-01-08 16:28         ` Florian Philipp
2013-01-08 17:35     ` [gentoo-user] " Volker Armin Hemmann
2013-01-08 19:06       ` Florian Philipp
2013-01-08 20:57         ` Joshua Murphy
2013-01-08 21:49         ` Alan McKinnon
2013-01-08 19:11       ` [gentoo-user] " James
2013-01-09  4:40         ` Volker Armin Hemmann
2013-01-09 15:17           ` walt
2013-01-09 18:57             ` Volker Armin Hemmann
2013-01-09  0:12     ` [gentoo-user] " Randy Barlow
2013-01-07 23:31 ` William Kenworthy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130108184234.65037a18@khamul.example.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox