doc/en_US.ISO8859-1/htdocs/internal/mirror.xml

41 lines
1.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//FreeBSD//DTD XHTML 1.0 Transitional-Based Extension//EN"
"http://www.FreeBSD.org/XML/share/xml/xhtml10-freebsd.dtd" [
<!ENTITY title "Mirroring the FreeBSD Web Pages">
]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&title;</title>
<cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>
</head>
<body class="navinclude.docs">
<p>It is possible to mirror the FreeBSD web pages
<tt>www.FreeBSD.org</tt>.
This can be done using a program called <em>rsync</em>.
rsync is a software package in the Ports Collection for
distributing and updating collections of files across a network.</p>
<h2>Running rsync</h2>
<p>If you keep your mirrored FreeBSD web pages in the directory
<tt>/usr/FreeBSD-mirror</tt> and are owned by the user `fred', then
run the following command as user `fred':</p>
<pre>
$ rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/FreeBSD-mirror/
</pre>
<p>This will mirror the FreeBSD web pages into
<tt>/usr/FreeBSD-mirror</tt>. You can install this into fred's
crontab, so that it runs once a day.</p>
<p><a href="internal.html">FreeBSD Internal Home</a></p>
</body>
</html>