.\" Copyright (c) 2020 Peter Pentchev .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions are met: .\" .\" 1. Redistributions of source code must retain the above copyright notice, .\" this list of conditions and the following disclaimer. .\" .\" 2. Redistributions in binary form must reproduce the above copyright notice, .\" this list of conditions and the following disclaimer in the documentation .\" and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" .Dd May 31, 2020 .Dt ZCK_DELTA_SIZE 1 .Os .Sh NAME .Nm zck_delta_size .Nd calculate the differences between two zchunk files .Sh SYNOPSIS .Nm .Op Fl v | Fl -verbose .Ar file1 .Ar file2 .Nm .Fl ? | Fl -help | Fl -usage | Fl -version .Sh DESCRIPTION The .Nm utility examines two zchunk compressed files and determines how similar they are: how many chunks are the same between the files, so that tools like e.g. .Xr rsync 1 or .Xr zckdl 1 could only transfer the small parts that differ instead of the full files. This is especially useful for structured files that have been compressed using the .Xr zck 1 tool's .Fl s Po Fl -split Pc option. .Pp The .Nm utility accepts the following optional arguments: .Pp .Bl -tag -width indent .It Fl v , Fl -verbose Verbose operation; display some diagnostic output. .It Fl ? , Fl -help Display program usage information and exit. .It Fl -usage Display brief program usage information and exit. .It Fl -version Display program version information and exit. .El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES Examine two zchunk files: .Pp .Dl zck_delta_size doc1.txt.zck doc2.txt.zck .Pp .Sh SEE ALSO .Xr unzck 1 , .Xr zck 1 , .Xr zck_gen_zdict 1 , .Xr zck_read_header 1 , .Xr zckdl 1 .Sh AUTHOR The .Nm utility was written by .An Jonathan Dieter Aq jdieter@gmail.com . This manual page stub was written by .An Peter Pentchev Aq roam@ringlet.net .