Build your own CVSup Server

Source: Internet
Author: User
Tags syslog
If you only have one or two machines
[Url = javascript:;] Use[/Url]

[Url = javascript:;]FreeBSD[/Url]
You can use freebsdchina. orGOf
[Url = javascript:;]CVSup[/Url]
The backup storage is relatively stable and fast. However, if you have dozens or even hundreds of machines running FreeBSD, each machine is remotely crawled, not only occupies a large amount
[Url = javascript:;]Bandwidth[/Url]
It takes a considerable amount of time. For the "lazy", it is really intolerable. Then, we will try to build our own CVSup image server to save external traffic, so that our image server can wait alone and work hard.
Step 1,
[Url = javascript:;]Install[/Url]
CVSup
[Url = javascript:;]Mirror[/Url]
Server software:
[Root @ CVSup ~] # Cd/usr/ports/NET/CVSup-mirror/
[Root @ CVSup/usr/ports/NET/CVSup-mirror] # Make
When executing make, it will ask you many questions. Let's answer them one by one:
Master site for your updates [cvsup-master.freebsd.org]?
Enter the source of your CVSup mirror, that is, the CVSup server of the external network. It is best to use the official site: cvsup.freebsd.org and cvsup2.freebsd.org. For details, see
FreeBSD CVSup document
. Because it is a transfer station, it is not very important to speed up.
How many hours between updates of your files [1]?
How long is the external CVSup Server Updated. The default one hour is enough.
Do you wish to mirror the main source repository [y]?
Whether the source code of the image is used. SRC is the most part of this image. Of course, Y is required.
Where wocould you like to put it [/home/NCVS]?
Where the source code is stored. I am positioning it in/export/cvsupmirror/NCVS. I must find a large idle partition, because it takes a lot of space to complete synchronization.
Do you wish to mirror the installed World Wide Web data [y]?
Whether to mirror the FreeBSD web site. Because I only want
[Url = javascript:;]Ports[/Url]
And SRC, so choose not image. If your resources are sufficient, you can run an image site www.freebsd.org after mirroring.
Do you wish to mirror the gnats bug tracking database [y]?
Whether to mirror the gnats bug tracking database. It is not important for updates. N is recommended because it is not commonly used.
Do you wish to mirror the mailing list archive [y]?
Whether to mirror the mail list Articles. N is recommended.
Unique unprivileged user ID for running the client [cvsupin]?
Unique unprivileged group ID for running the client [cvsupin]?
Unique unprivileged user ID for running the server [CVSup]?
Unique unprivileged group ID for running the server [CVSup]?
The user ID and group ID used by the client and server. Use the default one.
Syslog facility for the server log [daemon]?
The syslog facility that records server logs. By default.
Maximum simultaneous client connections [8]?
The maximum number of customer connections. It depends on your memory, CPU, and hard disk. I usually set it to 20, which is the maximum possible concurrency for my local update machine.
After answering all the questions, enter:
[Root @ CVSup/usr/ports/NET/CVSup-mirror] # make install clean
Now we have mounted CVSup mirror to the system. At the same time, it will join new user accounts and user groups.
[Url = javascript:;]Crontab[/Url]
Add a new hourly synchronization setting.
We can start or stop the CVSup server through cvsupd. Sh in/usr/local/etc/rc. d. You can change the update frequency by setting the execution time of the/usr/local/etc/CVSup/update. Sh command in/etc/crontab. Finally, it is also the most important. You can execute/usr/local/etc/CVSup/update. Sh to update the contents of all CVSup servers in real time. The latest log is recorded in/var/log/CVSup. log during the update. If your system does not automatically create this file, you can create an empty file:
[Root @ CVSup ~] # Touch/var/log/CVSup. Log
Note:
1. It takes a long time for the first update, and many things will be updated from the server, so be prepared;
2. If an error is reported when your CVSup client is connected, check whether the update is complete. The solution is simple. Then update until all the updates are complete;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.