I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? Thanks! jlc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joseph L. Casale wrote:> I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output?# fiff /path/to/dir1 /path/to/dir2 Regards, Max - -- # find . "*imbecile" -exec sed -ie "s/stupidity/commonsense/g" '{}' \; -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFILIgfIXSX/6LmsXkRAt/cAJ9ljU8yh0YcLdVylLlX659wBMVwHQCeIjLd RuKSPCwnXNInhZAPxq7KRcU=I5R8 -----END PGP SIGNATURE-----
Joseph L. Casale wrote:> I need to verify some directories of backed up data versus restored data. What would you recommend as the type of comparison to do, and which tool would give the easiest/most usable output? >Diff works if they are on the same machine. On different machines you can: rsync -avn -essh local-dir user at remote_host:/path/above_dir The -a option says to recurse and take all possible attributes, -v says show the file names, and -n says don't actually do it (be careful not to omit that..). This will give you a list of filenames that have some difference between local_dir and the remote copy. If you add a --delete it will also show anything that exists in the remote but not the local side (and be especially careful not to omit the -n in this case). -- Les Mikesell lesmikesell at gmail.com
On 05/15/2008 08:51 PM, Joseph L. Casale wrote:> I need to verify some directories of backed up data versus restored > data. What would you recommend as the type of comparison to do, and > which tool would give the easiest/most usable output?You might look at mc (Norton Commander clone) Sorry for Debian package description - have here, at home, only Debian $ aptitude show mc [...] Description: midnight commander - a powerful file manager GNU Midnight Commander is a text-mode full-screen file manager. It uses a two panel interface and a subshell for command execution. It includes an internal editor with syntax highlighting and an internal viewer with support for binary files. Also included is Virtual Filesystem (VFS), that allows files on remote systems (e.g. FTP, SSH, SMB servers) and files inside archives to be manipulated like real files.> Thanks! jlccheers Simon -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20080515/b31653b3/attachment-0005.sig>