diff --git a/website/site-sync b/website/site-sync
index 817e1ed77b88dd4e290519224ee2a7e06ad1a3d7..274b0be9b8649cc455ce3c5c31b1b52e8fed88a1 100755 (executable)
--- a/website/site-sync
+++ b/website/site-sync
-rsync --copy-unsafe-links --verbose --times --delete --exclude pub --exclude='*~' -r . /home/oetiker/public_html/webtools/rrdtool
+cat <<HEAD > mirror.html
+<html>
+<head>
+<title>website mirror instructions</title>
+</head>
+<h1>RRDtool Mirror Source</h1>
+<p>Run the following commands once a day.</p>
+<pre>
+#!/bin/sh
+cd /YOUR/MIRROR/TREE
+wget --no-host-directories --timestamping --recursive --level=1 http://oss.oetiker.ch/rrdtool/mirror.html
+</pre>
+
+<p>Create a file called <b>hoster.html</b> like that:</p>
+<pre>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+<style type="text/css">
+body {
+ margin: 0px;
+ padding: 0px;
+ background-color: #f0f0f0;
+ font-family: sans-serif;
+ font-size: 8px;
+}
+
+#hoster a {
+ color: black;
+ text-decoration: none;
+}
+</style>
+</head>
+<body>
+<div id="hoster">
+mirror by <a target="_top" href="http://YOUR.SITE">Company</a>
+</div>
+</body>
+</html>
+</pre>
+
+HEAD
+
+for xt in html png gif ico css htaccess js; do
+ find . -name "*.$xt" -not -name stat"*" -not -name "hoster*" -exec printf '<a href="{}">.</a>' \; >> mirror.html
+done
+echo "</body></html>" >> mirror.html
+
+rsync --copy-unsafe-links --verbose --times --delete --exclude pub --exclude='*~' --exclude=".svn" --exclude=".condor" -r . oposs@oss.oetiker.ch:public_html/rrdtool/
+#rsync --copy-unsafe-links --verbose --times --delete --exclude pub --exclude='*~' --exclude=".svn" --exclude=".condor" -r . /home/oetiker/public_html/webtools/rrdtool
#rsync --links --verbose --times --delete --exclude pub --exclude='*~' --rsh=ssh -r . tobi@ipn.caida.org:/ipn/web/Tools/RRDtool