Zysnc - for ISO updates

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 1668
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 714 times
Been thanked: 379 times

Zysnc - for ISO updates

Post by Jasper »

Hi all

Recently, I downloaded a Delta update for @ozsouth Fossapup23 and thought that could we not use Zsync to manage this. Also, @peebee kindly provides updates too in this manner.

How Zsync Works?

Zsync works by efficiently downloading and updating files by only fetching the parts of the file that have changed or are missing, rather than downloading the entire file from scratch.

Here's a more detailed explanation of how Zsync works:

Original File: Zsync starts with an original file that you want to download or update. This original file is typically hosted on a server.

Zsync File: Alongside the original file, a Zsync control file is provided. This file has the same name as the original file but with a ".zsync" extension (e.g., originalfile.iso.zsync). The Zsync control file contains metadata and checksum information.

Local Copy: You also have a local copy of the original file on your computer. This local copy might be an older version of the file that you want to update.

Zsync Algorithm: Zsync uses a specialized algorithm to compare the local copy of the file with the original file. It does this by comparing checksums and metadata in the Zsync control file.

Determining Differences: Zsync identifies the parts of the original file that are missing or have changed since your local copy was last updated. It does this without downloading the entire file.

Partial Downloads:
Zsync then downloads only the specific parts of the original file that are missing or changed. These parts are referred to as "chunks."

Combining Chunks
: Zsync combines the downloaded chunks with your local copy to create an updated version of the original file.

Checksum Verification: Zsync uses checksums and hash functions to verify the integrity of the downloaded chunks, ensuring that they match the expected data.

Final Updated File: Once all necessary chunks are downloaded and integrated into your local copy, you have the fully updated and correct version of the original file.

Zsync Benefits

The benefits of using Zsync are listed below:

Reduced Bandwidth Usage: You save on bandwidth because you're only downloading the portions of the file that have changed, which is much smaller than the entire file.

Faster Downloads: Since you're downloading less data, the process is generally faster, especially when updating large files.

Efficiency: Zsync is especially useful for downloading large files like Linux distribution ISOs or software updates, as it minimizes the time and resources required.

Checksum Verification:
Zsync uses checksums to ensure the integrity of the downloaded parts, providing a level of data integrity verification.

Image

User avatar
wiak
Posts: 3690
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 57 times
Been thanked: 1029 times
Contact:

Re: Zysnc - for ISO updates

Post by wiak »

That will be extremely useful if it works well. Of course rolling release type distros update so drastically and quickly, zsync may not provide much advantage. Pseudo full install type usage with reliable package manager is the optimum update mechanism maybe when huge changes are involved. Worth testing zsync anyway though and especially with some of the more static Puppy distro releases, so depends...

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
Jasper
Posts: 1668
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 714 times
Been thanked: 379 times

Re: Zysnc - for ISO updates

Post by Jasper »

@wiak

It's straightforward to implement and ideally used by hosts eg @rockedge

The binary was compiled for FP95.

Image

Post Reply

Return to “Users”