In the process of mirroring Fedora Core updates repository over a slow (256 Kbps) connection using rsync, I realized that the process can be extremely frustrating as you spend lots of time looking at the console, waiting for something to happen…anything.在這個過程中的鏡像是Fedora Core更新存放較緩慢( 256 kbps的)連接使用rsync等工具,我實現了這個過程可以是非常令人沮喪,因為你花了很多時間看控制台,等待某件事情出現…任何事情。 Then I found the magic option to show a progress meter - –progress .然後我發現,魔術,可以選擇顯示的進展米-- 進展。 Add this to your rsync command options and you can see in realtime the status of your download, the current connection speed etc. While it will not speed your downloading it will at least make the pain bearable.新增此項目到rsync等工具命令選項,你可以看到,在實時的地位,您的下載,目前的連線速度等,而它不會您的下載速度將至少使疼痛忍受的。

When you specify –delay-updates you want to ensure that all files are replaced in the destination directory only after the transfer has been complete.當您指定延遲更新您想要確保所有的檔案所取代,在目的地目錄後,才轉移已經完成。 This is particularly important when you have people / process accessing the repository even during update.這一點特別重要,當你的人/進程進入了Repository ,即使是在更新。 A downside is if you are syncing for the first time and the process fails then you will have to start all over again.一缺點是如果您是同步為第一時間和過程中失敗的話,你將不得不重新開始。 A simple way around this is to copy all the files from the ~.tmp~ directory to your base directory and start the process again.一個簡單的方式解決這個問題是所有文件複製從〜 。 tmp的〜目錄到您的基地目錄,並開始重新處理。 This will ensure that already downloaded files are not downloaded again.這將確保已下載的文件不會再次下載。

Finally a word about verbose mode.最後談談詳細模式。 Increasing the number of v’s in the rsync options increases verbosity.人數增加V的,在rsync等工具選項增加verbosity 。 Having 4 v’s is probably more information that you will ever want to know.有4個V的可能是更多信息,你都不會想知道的。 Personally I prefer one v with –progress as described above for continuously updated status.我個人寧願一V ,帶-進展如上文所述,不斷更新的狀態。