Re: Comparing backup file to hard disk?
Miek Gieben <[email protected]> Fri, 5 Aug 2005 11:16:28 +0200
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
--/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [On 04 Aug, @10:00, Sven.Hartrumpf@fernuni-ha wrote in "[hdup-user] Compari= ng backup f ..."] > Hi all. >=20 > I am looking for a clever way to compare a (monthly) backup file > to the current state of a hard disk. > Aims: > - identify all files that have disappeared on disk > - identify all files whose content has changed on disk >=20 > Probably this is more a tar question than a hdup question, > but anyway: here are experts of both worlds :-) The only way I can imagine that this is going to work is=20 some rough tar and find magic. The first one is easy to do, but still very disk intensive. Doing a tar tf <tarfile> and then (smartly) compare that with what's on disk. The known if the actual contents have changed is very much harder, 'cause tar doesn't really put that in the archive. You could use the incremental file tar uses when doing the backup, but that would also be hard. You could use the c/m/a-times of the files, but that could be inaccurate with regard to actual changes. Actually, come to think about it. Why don't you do a weekly backup and look at the files in there? That should give you a list of changed files? -- grtz, - Miek http://www.miek.nl http://www.nlnetlabs.nl PGP Key ID: 0xB18453A1 fingerprint: 002B B079 0DDA 7D44 2B5C CAB0 C3B7 F943 B184 53A1 --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFC8y5sw7f5Q7GEU6ERAoasAJ9LEKE/GAmpj/OAicLKPyxRnZiYpgCfV/+Y mK2BkxoV3rWaaiGR0Nt4qBo= =ZFMD -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--