How to refuse stuff using cvsupIf 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 friendJohn 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 wantWhen 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.