FreeBSD Manual Pages
SNAPSHOT-COMPARE(1C) SNAPSHOT-COMPARE(1C) NAME snapshot-compare - compare two snapshots of a directory tree SYNOPSIS snapshot-compare <snapshot-1> <snapshot-2> [:strip=N] [:strip1=N] [:strip2=N] DESCRIPTION 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 be- tween 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 EXIT STATUS Errors result in a non-zero exit status. AUTHOR George Carrette. gjc@world.std.com SEE ALSO siod snapshot-dir http://people.delphi.com/gjc/siod.html FILES /usr/local/bin/snapshot-compare /usr/local/bin/siod LOCAL SNAPSHOT-COMPARE(1C)
NAME | SYNOPSIS | DESCRIPTION | EXIT STATUS | AUTHOR | SEE ALSO | FILES
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=snapshot-compare&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>
