The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
How to refuse stuff using cvsup
28 January 2000
|
If you are cvsup'ing, sometimes you don't want everything. That's where a refuse file comes in. This article show how I used a restrict the data transferred. For more information about cvsup, see the cvsup section of the topics age. |
The FAQ is your friend
|
John Polstra is the gawd of cvsup. Check his FAQ at http://www.cvsup.org/faq.html, which is where I found the answer for this quest. It contains a section dedicated to refuse files. |
What I didn't want
|
When I was setting up a mirror, I was concerned about the bandwidth usage
as I'm on a pay-by-volume basis. My first thoughts were to restrict the incoming
data to english-only. So I deicided to avoid the docs, ports, www, and src sections
which dealt with other languages. Here is my refuse file:# more /usr/local/etc/cvsup/sup.client/refuse doc/es* doc/ja* doc/ru* doc/zh* doc/fr* ports/chinese* ports/german* ports/japanese* ports/korean* ports/russian* ports/vietnamese* www/es* www/ja* www/ru* www/zh* data/es* data/ja* data/ru* data/zh* www/data/es* www/data/ja* www/data/ru* www/data/zh* src/share/doc/es* src/share/doc/ja* src/share/doc/ru* src/share/doc/zh* The location of the file is important. The location needed for your situation is explained within the FAQ reference listed above. I admit I had many problems gettting my refuse file to work. I attribute that to my not reading the FAQ fully. Try that first. |