zsyncmake(1)
π¦ zsyncmake(1) β Build control file for zsync(1) π¦
okay so bestie, welcome to the zsyncmake manual page (that's the zsyncmake(1) situation, file transfer vibes only) π
β¨ NAME β¨
zsyncmake β build the control file for zsync(1) π
πΈ SYNTAX πΈ
blocksize ] [ -o outfile ] [ -f targetfilename ] [ -v ] filename
zsync -V
π DESCRIPTION π
So what this icon does is construct a metafile β literally a file about a file β that the zsync client program uses to do partial file downloads. filename is the file that users wish to downloads (yes that's the manpage's grammar, we keep it, we love it π); zsyncmake constructs the appropriate metafile and writes filename.zsync in the current directory. no cap, that's it.
zsync will need at least one URL from which to download the file content. If the .zsync will be in the same directory as the file to download, you can just accept the default β zsync includes a relative URL in the control file. cute, right? π«Ά But if it's not in the same directory, use the -u option to specify the URL. You should also specify a URL for the uncompressed content with -U if available, because zsync can make use of this for more efficient downloads sometimes. (You can edit the .zsync file and add these afterwards β it has a simple key: value format in the header β but I suggest you only do this once you are familiar with the tool. lowkey a "trust me bestie, walk before you run" moment π)
β οΈ heads up: zsyncmake itself does not (currently) verify the URLs or download any data. You must provide the file data locally and check the URLs yourself. she is not doing that labor for you, bestie π
π OPTIONS π
-bblocksize β specify the blocksize for the underlying rsync algorithm. A smaller blocksize may be more efficient for files where there are likely to be lots of small, scattered changes between downloads; a larger blocksize is more efficient for files with fewer or less scattered changes. This blocksize must be a power of two. If not specified,zsyncmakechooses one which it thinks is best for this file (currently either2048or4096depending on file size) β so normally you should not need to override the default. she's got this β¨-Cβ DEPRECATED. Tellszsyncmakenot to generate any instructions in the.zsynctelling the client to compress the data it receives. This is implied by-z, but this option is here in case you compress a file yourself only for the transfer, but want the client to end up with the uncompressed file (e.g. you are transferring an ISO, which is held compressed on the server, but which the client cannot use unless it is uncompressed). Without-C,zsyncmakewill produce directions for the client to compress the file it receives where appropriate;-Cis here so you can stop it telling the client to do that. π-eβ DEPRECATED β this is only useful for compressed files without-Zspecified; support for this case will be removed in a future verson (yes, "verson", we're keeping the typo, it's canon now π). Tellszsyncmakethat the client must be able to receive the exact file that was supplied. Without this option,zsyncmakeonly gives a weaker guarantee β that the client will receive the data it contains (e.g. it might transfer the uncompressed version of a.gzto the client). Note that this still doesn't guarantee that the client will get it β the client could ignore the directives in the zsync file, or might be incapable of exactly reproducing the compression used. But with-eyou know thatzsyncmakehas made it possible to get the exact data β it will exit with an error if it cannot. so it's giving "best effort, but make it loud" π«‘-ffilename β set the filename to include in the output file (this is what the file will be called when a user finished downloading it). naming rights, iconic π-ooutputfile β override the default output file name. she can be called whatever you want, main character energy π-uurl β specifies the URL from which users can download the content of the supplied file. Users need the control file in order to find out what parts of the file they already have, and they need the URLs to retrieve the parts of the file that they don't already have. You can specify multiple URLs by specifying-umultiple times. If not specified,zsyncassumes that the file and the.zsyncwill reside in the same public directory, and includes a single relative URL. stack 'em up, the more the merrier fr fr π-Uurl β DEPRECATED. Specifies a URL corresponding to the decompressed content of the file (only applicable if it is a gzip file).zsynccan sometimes download more efficiently from the uncompressed data than from the compressed data β it will take advantage of this if available. If no URLs are specifies (another typo, keeping her π),zsynclooks for a file without the.gzextension and assumes that this will be in the same public dir as the.zsync, and includes a relative URL to it.-vβ enable verbose messages. she will yap. affectionately π¬-Vβ prints the version ofzsync. vibe check on the version β¨-zβ DEPRECATED. Compress the file to transfer. Note that this overwrites any file calledfilename.gzwithout warning (if you don't give a filename, e.g. because you are reading from stdin, thenzsyncwill use the name supplied with-f, or as a last fallback,zsync-target.gz). β οΈ like, it will genuinely just eat that file, no questions asked, you have been warned bestie π
π§ sozsynccan work with compressed data, and, in most cases where the data is not already compressed, it is more efficient to compress it first. While you can just compress the file to transfer withgzip, if you use this option thenzsyncmakewill compress the file for you, producing a.gzfile which is optimised forzsync. This can be 30% more efficient at download time than compressing withgzip --bestβ but the compressed file will not be as small as that produced bygzip. trade-offs, bestie, trade-offs π
-Zβ by default,zsyncmakelooks inside gzip compressed files and exports the underlying, uncompressed data to thezsyncmakefile.-Zdisabled this, causingzsyncto treat the gzip file like any other file and merely generate a download for the raw compressed data. This setting is recommended to be used for files compressed with--rsyncable. noted and slayed π«Ά
π₯ EXAMPLES π₯
http://ftp.uk.debian.org/debian/dists/sarge/main/binary-i386/Packages.gz
Packages.gz
note use of -C to save the client compressing the file on receipt; the Debian package system uses the file uncompressed. king behavior π
http://www.mirrorservice.org/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/zsync-0.2.2.tar.gz
zsync-0.2.2.tar.gz
This creates a zsync referring to the named source tarball, which the client should download from the given URL. This example is for downloading a source tarball for a FreeBSD port, hence -e is specified so the client will be able to match its md5sum. chef's kiss, checksum supplied π€
π AUTHORS π
Colin Phipps <cph@moria.org.uk> β the icon, the legend β
π SEE ALSO π
zsync(1) β go read the client side too, iykyk π
okay that's the whole page bestie, go forth and make control files π
sign-off: this gem is zsyncmake(1) from version 0.6.6, brought to you by Colin Phipps, and she's out here living her best File Transfer life. periodt. ππ¦β¨
π¦ where this page comes from
- arch rolling: zsync 0.6.6-1 Β· LicenseRef-Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms