特殊:Badtitle/NS100:RsyncCdImage
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/RsyncCdImage }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/af | • {{#if: UbuntuHelp:RsyncCdImage|Afrikaans| [[::RsyncCdImage/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ar | • {{#if: UbuntuHelp:RsyncCdImage|العربية| [[::RsyncCdImage/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/az | • {{#if: UbuntuHelp:RsyncCdImage|azərbaycanca| [[::RsyncCdImage/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/bcc | • {{#if: UbuntuHelp:RsyncCdImage|جهلسری بلوچی| [[::RsyncCdImage/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/bg | • {{#if: UbuntuHelp:RsyncCdImage|български| [[::RsyncCdImage/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/br | • {{#if: UbuntuHelp:RsyncCdImage|brezhoneg| [[::RsyncCdImage/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ca | • {{#if: UbuntuHelp:RsyncCdImage|català| [[::RsyncCdImage/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/cs | • {{#if: UbuntuHelp:RsyncCdImage|čeština| [[::RsyncCdImage/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/de | • {{#if: UbuntuHelp:RsyncCdImage|Deutsch| [[::RsyncCdImage/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/el | • {{#if: UbuntuHelp:RsyncCdImage|Ελληνικά| [[::RsyncCdImage/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/es | • {{#if: UbuntuHelp:RsyncCdImage|español| [[::RsyncCdImage/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/fa | • {{#if: UbuntuHelp:RsyncCdImage|فارسی| [[::RsyncCdImage/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/fi | • {{#if: UbuntuHelp:RsyncCdImage|suomi| [[::RsyncCdImage/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/fr | • {{#if: UbuntuHelp:RsyncCdImage|français| [[::RsyncCdImage/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/gu | • {{#if: UbuntuHelp:RsyncCdImage|ગુજરાતી| [[::RsyncCdImage/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/he | • {{#if: UbuntuHelp:RsyncCdImage|עברית| [[::RsyncCdImage/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/hu | • {{#if: UbuntuHelp:RsyncCdImage|magyar| [[::RsyncCdImage/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/id | • {{#if: UbuntuHelp:RsyncCdImage|Bahasa Indonesia| [[::RsyncCdImage/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/it | • {{#if: UbuntuHelp:RsyncCdImage|italiano| [[::RsyncCdImage/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ja | • {{#if: UbuntuHelp:RsyncCdImage|日本語| [[::RsyncCdImage/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ko | • {{#if: UbuntuHelp:RsyncCdImage|한국어| [[::RsyncCdImage/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ksh | • {{#if: UbuntuHelp:RsyncCdImage|Ripoarisch| [[::RsyncCdImage/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/mr | • {{#if: UbuntuHelp:RsyncCdImage|मराठी| [[::RsyncCdImage/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ms | • {{#if: UbuntuHelp:RsyncCdImage|Bahasa Melayu| [[::RsyncCdImage/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/nl | • {{#if: UbuntuHelp:RsyncCdImage|Nederlands| [[::RsyncCdImage/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/no | • {{#if: UbuntuHelp:RsyncCdImage|norsk| [[::RsyncCdImage/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/oc | • {{#if: UbuntuHelp:RsyncCdImage|occitan| [[::RsyncCdImage/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/pl | • {{#if: UbuntuHelp:RsyncCdImage|polski| [[::RsyncCdImage/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/pt | • {{#if: UbuntuHelp:RsyncCdImage|português| [[::RsyncCdImage/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ro | • {{#if: UbuntuHelp:RsyncCdImage|română| [[::RsyncCdImage/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/ru | • {{#if: UbuntuHelp:RsyncCdImage|русский| [[::RsyncCdImage/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/si | • {{#if: UbuntuHelp:RsyncCdImage|සිංහල| [[::RsyncCdImage/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/sq | • {{#if: UbuntuHelp:RsyncCdImage|shqip| [[::RsyncCdImage/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/sr | • {{#if: UbuntuHelp:RsyncCdImage|српски / srpski| [[::RsyncCdImage/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/sv | • {{#if: UbuntuHelp:RsyncCdImage|svenska| [[::RsyncCdImage/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/th | • {{#if: UbuntuHelp:RsyncCdImage|ไทย| [[::RsyncCdImage/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/tr | • {{#if: UbuntuHelp:RsyncCdImage|Türkçe| [[::RsyncCdImage/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/vi | • {{#if: UbuntuHelp:RsyncCdImage|Tiếng Việt| [[::RsyncCdImage/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/yue | • {{#if: UbuntuHelp:RsyncCdImage|粵語| [[::RsyncCdImage/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/zh | • {{#if: UbuntuHelp:RsyncCdImage|中文| [[::RsyncCdImage/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/zh-hans | • {{#if: UbuntuHelp:RsyncCdImage|中文(简体)| [[::RsyncCdImage/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RsyncCdImage | UbuntuHelp:RsyncCdImage | {{#if: | :}}RsyncCdImage}}/zh-hant | • {{#if: UbuntuHelp:RsyncCdImage|中文(繁體)| [[::RsyncCdImage/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:RsyncCdImage|:RsyncCdImage|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :RsyncCdImage/zh | | {{#ifexist: RsyncCdImage/zh | | {{#ifeq: {{#titleparts:RsyncCdImage|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:RsyncCdImage|1|-1|}} | zh | | }}
rsync is a wonderful piece of software that only downloads the parts of a file that have changed. https://launchpad.net/products/rsync is a good resource for more information. A nice thing about the way the Ubuntu CDs are constructed is that it's quite easy to keep an up to date local install CD using rsync. Since the daily CDs generally change quite little, it can be processed quite quickly.
Acquiring the ISO
The various files that you need are at http://cdimage.ubuntu.com It's best to use the torrent file if you can. If you have a local Ubuntu archive mirror or cache, you can also use Jigdo. Rsync is handy for finishing up Jigdo downloads that still have a few missing pieces.
Updating the ISO
A number of the Ubuntu servers also work as rsync servers with quite similar URIs to the websites. For example:
rsync -zhhP rsync://cdimage.ubuntu.com/cdimage/daily-live/current/hardy-desktop-i386.iso .
will sync the server's daily Hardy desktop image (for i386) to your local system with an older desktop image already stored on your hard drive. -z is compression, -hh is human readable file size (not in Dapper (2.6.6) though), and -P is a progress indicator. Note: If you are using other flavors of Ubuntu don't forget to add the flavor's name in the rsync-path after cdimage/, e.g.
rsync -zhhP rsync://cdimage.ubuntu.com/cdimage/kubuntu/daily-live/current/hardy-desktop-i386.iso .
A slightly more advanced script will automate much of the syncing process. To run this script successfully, you will need to set the ISO, DIR, and ISOPATH variables according to your needs.
#!/bin/bash #Script for updating individual ISO image at cdimage.ubuntu.com (daily/current versions). #Orginal script written by Henrik Omma, slightly adjusted by Bert Verhaeghe ISO="hardy-desktop-i386.iso" DIR="/data/software/iso-files/ubuntu/hardy" ISOPATH="cdimage.ubuntu.com/cdimage/xubuntu/daily-live/current" cd $DIR echo "###################" echo "# rsync iso image #" echo "###################" rsync -avzhhP --progress rsync://$ISOPATH/$ISO $ISO md5sum $ISO | sed -e "s/ / */" > $ISO.md5.local #create identical formatted md5sum file from local copy wget http://$ISOPATH/MD5SUMS grep $ISO MD5SUMS > $ISO.md5.server rm MD5SUMS echo "" echo "########################################" echo "# diff'ing MD5SUMs : local <-> server #" echo "########################################" diff -q $ISO.md5.local $ISO.md5.server echo "" if [ ! $? -eq "0" ]; then echo "!!! MD5SUMs differ !!!" else echo "MD5SUMs identical" fi
This script does two things. First, it syncs your local ISO image to the most recent ISO image on the Ubuntu servers. It then creates files containing the MD5SUMs of both the local and server images, and outputs if the MD5SUMs are identical or not.