ArGest Backup User Guide

  1. Home
  2. Docs
  3. ArGest Backup User Guide
  4. Terminal Archive Inspection and Verification
  5. Difference Mode Examples

Difference Mode Examples

The following example illustrates how to check for files that have changed their size or contents. In this case, we want to list only the names of the files that are different:

$ bru -d
“./file1”: size contents

The next example is similar, except that single level verbosity is specified. In this case, all the files will be listed and each difference will be reported on a separate line:

$ bru -d -v
./file1
“./file1”: file size different
“./file1”: file contents different
./file2
./file3

Now we’ll increase the difference checking level to detect any changes in the file modification date or in file permissions. No verbosity is specified, so only the differences will be reported:

$ bru -dd
“./file1”: size mtime contents

Any combination of -d and -v options can be specified. You can also use the -V (capital V) option to generate an execution summary that shows the number of archive files that are different. Here’s an example:

$ bru -d -V
**** bru: execution summary ****
Started: Tue Mar 14 08:50:19 1995
Completed: Tue Mar 14 08:50:53 1995
Archive id: 2f65ba6b0193
Messages: 0 warnings, 0 errors
Archive I/O: 0 blocks (0Kb) written
Archive I/O: 110 blocks (220Kb) read
Files written 0 files (0 regular, 0 other)
Files read 66 files (66 regular, 0 other)
Files in headers: 60
Write errors: 0 soft, 0 hard
Read errors: 0 soft, 0 hard
Checksum errors: 0
Difference count: 1

In the event that differences were encountered, the different file will be listed in BRU’s output and the “Difference count” field would indicate the number of differences:

$ bru -ddddvvvvvf ntape0
...
"/Applications/BRU UB/bruTalk.app/Contents/Resources/talk48x48Mask.gif": inode number different
"/Applications/BRU UB/bruTalk.app/Contents/Resources/talk48x48Mask.gif": time of last modification different
d 68788K [1] -rw-r--r-- 1 tjones admin 0 Jul 15 2010 1129350 /Applications/BRU UB/Icon
bru: [I181] read 34616 blocks (69232 KBytes) on volume [1], 0:00:00, 99999 KB/sec

**** bru: execution summary ****
Started: Sun Mar 6 09:47:21 2011
Completed: Sun Mar 6 09:47:21 2011
Archive id: 4cb86b367287
Messages: 0 warnings, 0 errors
Archive I/O: 0 blocks (0KB) written
Archive I/O: 34626 blocks (69252KB) read
Files written: 0 files (0 regular, 0 other)
Files read: 243 files (220 regular, 23 other)
Files skipped: 0 files
Volumes used: 0
Write errors: 0 soft, 0 hard
Read errors: 0 soft, 0 hard
Checksum errors: 0
Difference count: 242