The Wayback Machine - https://web.archive.org/all/20041105051428/http://sunsite.berkeley.edu:80/Libweb/mirrors/

Berkeley Digital Library SunSITE

Libweb

Mirroring Libweb


Guidelines

I am happy to make Libweb available for you to mirror on your own site, subject to the following guidelines. Directions for creating the mirror appear below.

  1. Libweb is available for non-commercial, individual, or library use only. Express permission is required for any commercial use of this content.
  2. Send me a message so that I know you are creating the mirror. Let me have a contact e-mail address and URL (if the URL will not be publicly accessible, let me know that too). Unless you tell me otherwise, I will assume that I can add your site to the list of publicly available mirrors. I will not publish the contact e-mail addresses.
  3. With one exception, you may not edit the Libweb pages or stylesheet, or revise or reorganize the content. The one exception is that each of the HTML pages has comments labeled TOP LOCAL LINK and BOTTOM LOCAL LINK. You may replace either or both of these comments with HTML source to provide local identifying information or links. For example, you may replace them with a logo image, a "Return To Our Home Page" link, or a navigation bar common to all the pages on your site. You may not replace them with commercial advertisements.
  4. The mirror's home page as distributed is named index.html. If your web server cannot accommodate this, you may change the filename as needed. The other pages link to it with the relative URL "./", so as long as your server uses some default file name, these links should work.
  5. Your local presentation of Libweb must not obscure my authorship or the role of the Berkeley SunSITE as the originating site. This includes but is not limited to enclosing Libweb in a frameset if that frameset serves to make Libweb look anyone else's original work.
  6. You are obligated to keep your mirror up to date. Any revisions I receive are uploaded nightly to the Berkeley SunSITE. I recommend that you update your server at least once a week and certainly no less often than once a month. I will take sites off the list if they fall too far out of date.

Directions

The mirror currently consists of a single, self-contained directory of files, distributed as a tar file. Updating the mirror is simply a matter of getting the tar file and extracting it in a directory under your web server.

The tar file is located at <URL:http://sunsite.berkeley.edu/Libweb/mirrors/libweb.tar>.

  1. Using a Web browser or any HTTP-capable program, GET http://sunsite.berkeley.edu/Libweb/mirrors/libweb.tar and save it to a file.
  2. Using tar or any utility that understands the TAR format, extract the files to a location under your web server. They will extract to a local directory named libweb-mirror. In addition to the Unix "tar" utility, a number of programs handle tar files, including PKZip and WinZip running under Windows.
  3. Feel free to delete the tar file once it has been extracted.

That's all there is to it.

Here is a complete Unix shell script to update the mirror (it combines steps 1 and 2 into a single command):


	#!/usr/bin/ksh
	cd /path/to/parent/directory
	
	GET http://sunsite.berkeley.edu/Libweb/mirrors/libweb.tar | \
	    tar xf -

	#If your system doesn't have GET, comment out the two lines above.
	#Then uncomment the following two lines.
	#lynx -dump http://sunsite.berkeley.edu/Libweb/mirrors/libweb.tar | \
	#    tar xf  -

This was suggested to me as a more Linux-friendly script:

	#!/usr/bin/bash
	cd /path/to/parent/directory
	wget http://sunsite.berkeley.edu/Libweb/mirrors/libweb.tar | \
	    tar xf -
	rm -f libweb.tar

Change the directory name, and you're ready to go.

(Unix wizards: my ksh dabbling takes place in the insular little world of Digital Unix. If I'm giving bad advice for Solaris, Linux, et al., somebody shout at me.)