UseRsync
From K12LTSP Wiki
Shamelessly swiped from Eric Harrison's mail to the K12OSN mailing list: https://www.redhat.com/archives/k12osn/2003-May/msg00665.html
Rsync can operate in many different ways. For public read-only access, rsync supports what is refered to as "modules". The name of modules and their contents are determined by the site providing the rsync access (see "man rsyncd.conf" if you want to provide anonyomous rsync access yourself).
rsync "modules" are indicated by specifying two colons (::) after the name of the server. For example, to see what publicly advertised modules are available at k12linux.mesd.k12.or.us, one could run the following command:
rsync k12linux.mesd.k12.or.us::
The output of this command is <verbatim> $ rsync k12linux.mesd.k12.or.us:: updates Red Hat 6.2 updates rh73-updates Red Hat 7.3 updates rh80-updates Red Hat 8.0 updates testing experimental rpms K12LTSP Use this if you want to mirror the K12LTSP distro K12LTSP-mirror Use this if you want to mirror the K12LTSP distro K12Linux-mirror Use this if you want to mirror the K12Linux distro K12LTSP-beta development branch of K12LTSP, not intended for production use K12LTSP-apt mirror of the K12LTSP apt repositories K12LTSP-pre pre-release branch of K12LTSP K12LTSP-4.0-i386 K12LTSP 4.0.x install tree K12LTSP-all The whole K12LTSP 4.0.1 install tree, updates, and ISOs. </verbatim>
In the case of the question above, the desired module is "K12LTSP-beta". To see what is in the K12LTSP-beta module, we just append it to the previous rsync command:
rsync k12linux.mesd.k12.or.us::K12LTSP-beta
<verbatim>
rsync k12linux.mesd.k12.or.us::K12LTSP-beta
drwxrwxr-x 4096 2004/06/15 21:23:19 . drwx------ 4096 2004/06/15 21:24:07 8 -rw-r--r-- 674560000 2004/05/26 14:51:07 K12LTSP-4.1.0-alpha7-disc1.iso -rw-r--r-- 681687040 2004/05/26 14:51:54 K12LTSP-4.1.0-alpha7-disc2.iso -rw-r--r-- 629254144 2004/05/26 14:52:37 K12LTSP-4.1.0-alpha7-disc3.iso -rw-r--r-- 537272320 2004/05/26 14:53:08 K12LTSP-4.1.0-alpha7-disc4.iso -rw-r--r-- 260 2004/05/26 15:04:15 MD5SUMS </verbatim>
Now we have found the ISO images we want, so we can tell rsync to retrieve them. First, since we want to save bandwidth, we will rename our older K12LTSP ISOs to match the name of the new ISOs (i.e. rename "K12LTSP-XXX1.iso" to "K12LTSP-XXXX2.iso", etc).
Now we can run the following command to sync the remote files to the local files:
rsync -avP k12linux.mesd.k12.or.us::K12LTSP-mirror/* .
Want the latest?
<verbatim> rsync -Pav k12linux.mesd.k12.or.us::K12LTSP-beta/ . </verbatim>
explanations of arcane linux/rsync acronyms:
The "P" means partial and progress, it makes it possible to resume an interrupted download and gives you progress information about how quickly the download is progressing.
The "a" means archive mode, it will recursively download subdirectories, retain symbolic links and permissions, and otherwise duplicate exactly what is on the remote server.
The "v" means be more verbose, give more information about the download.
The "." means the current working directory: sync the remote directory to the contents of the local directory.
