GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNAPSHOT-COMPARE(1C) SNAPSHOT-COMPARE(1C)

snapshot-compare - compare two snapshots of a directory tree

snapshot-compare <snapshot-1> <snapshot-2> [:strip=N] [:strip1=N] [:strip2=N]

snapshot-compare

will load the two directory snapshot databases, strip a number of slashes from the pathnames of the files in the databases, then generate a report describing files which are in one snapshot but not the other, and also what files which have different MD5 checksums between snapshots.

The following example shows that the file foo.bar is contained exclusively in the x.after snapshot, and the snapshot-compare.1 file is different between snapshots.

bosa00> ./snapshot-compare x.before x.after
; loading x.before
; done 227 files
; loading x.after
; done 229 files
; x.after /moby/src/kit/foo.bar
diff /moby/src/kit/snapshot-compare.1

The effect of the strip parameter is demonstrated in this example:

bosa00> ./snapshot-compare x.before x.after :strip=3
; loading x.before
; done 227 files
; loading x.after
; done 229 files
; strip 3 levels of / from x.before
; strip 3 levels of / from x.after
; x.after kit/foo.bar
diff kit/snapshot-compare.1

Errors result in a non-zero exit status.

George Carrette. gjc@world.std.com

siod snapshot-dir http://people.delphi.com/gjc/siod.html

/usr/local/bin/snapshot-compare /usr/local/bin/siod
LOCAL

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.