#!/bin/sh export PATH=/usr/bin:/bin echo Content-Type: text/html echo cat < website mirror instructions

MRTG Mirror Source

Run the following commands once a day.

#!/bin/sh
cd /YOUR/MIRROR/TREE
wget --no-host-directories --timestamping --recursive --level=1 http://oss.oetiker.ch/mrtg/mirror.html

Create a file called hoster.html like that:

<!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: #909090;
    font-family: sans-serif;
    font-size: 10px;
}

#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>
HEAD ( for xt in html png jpg gif ico css js gz txt zip patch pgp md5 pdf CHANGES; do find . \( -name "*$xt" -not -name "stat*" -not -name "hoster*" \) -exec printf '.\n' \; | grep -v /.svn |egrep -v 'pub/.*html' done ) | sort -u echo ""