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 SIGNED MESSAGE----- Hash: SHA1
Joseph L. Casale wrote:
diff? Yeah, that's what I am about to run. Just thought their might be something it might miss in that scenario. Thanks for the confirmation!
Oops, yeah diff not fiff. I need typing lessons today!
Max
- -- # find . "*imbecile" -exec sed -ie "s/stupidity/commonsense/g" '{}' ;
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@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).
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! jlc
cheers Simon