Re: Using md5sums for file diffs in incremental backups

From: Steven J. Hathaway (shathawa_at_e-z.net)
Date: 05/01/04


Date: Fri, 30 Apr 2004 23:26:05 -0700


"Jeffrey J. Kosowsky" wrote:

> I am trying to write some scripts to do incremental backups.
>
> I need a good way of identifying files that have changed (either in
> content or permissions or ownership) since the last backup.
>
> I would like to create a file database using something like md5sums
> plus the permission and ownership bits so that I can quickly tell
> whether files have changes. Then I would like to compare the current
> filesystem against this database to determine which files have changed
> and require backup. After each incremental backup, I would then update
> the database.
>
> I am sure I could set up a kluge manually but I was wondering whether
> there are any pre-existing programs that do this more simply and
> efficiently.
>
> (I know I could use something like find with ctime, but that doesn't
> give me as much flexibility as the above method.)
>
> Thanks,
> Jeff

The packaging tools developed by AT&T in UNIX SVR4 have a database
with timestamps, ownership, permissions, and the above checksums.
The packaging tools also have programs that will validate the actual
files against the installed package integrity rules. Solaris uses these.

Maybe Red Hat Package Manager has something equivalent for Linux.

You might also check out the Debian Package Manager.

Otherwise, like me, write your own system integrity checking database
and comparison scripts.

- Steven J. Hathaway



Relevant Pages

  • Re: Security - Stored Procedures
    ... This is known as ownership chaining. ... Permissions on indirectly referenced objects are not required. ... owned by the same login since database ownership determines the user/login ...
    (microsoft.public.sqlserver.security)
  • Re: Security - Stored Procedures
    ... > This is known as ownership chaining. ... permissions are only checked on directly referenced objects. ... You can change database ownership using ...
    (microsoft.public.sqlserver.security)
  • Changing ownership/permissions on Data .mdb file.
    ... I'm working on securing a database, ... ownership of the objects in the database, the book in which I'm working ... changes ownership of the links to the back-end tables ijn the data .mdb ... on to other areas of permissions, so I'm a bit confused at this point. ...
    (microsoft.public.access.security)
  • Re: mdw file confusion
    ... > permissions. ... I'm also trying to package the database for ... > distribution (I'm including my mdw file). ...
    (microsoft.public.access.security)
  • Using md5sums for file diffs in incremental backups
    ... I am trying to write some scripts to do incremental backups. ... content or permissions or ownership) since the last backup. ... I would like to create a file database using something like md5sums ...
    (comp.os.linux.misc)