However, please be gentle, and unless you really offer a public mirror site for Sparemint, rather use these mirror sites for updating your private Sparemint copy. If the load on the Sparemint home server is getting too high it is very likely that public access to the server either gets completely forbidden or restricted to certain hours!
In the following examples, please always replace
MY_PASSWORDwith the e-mail address of the person responsible for the Sparemint mirror at your site or with the password you have been assigned by the Sparemint team
MY_HOSTwith the fully-qualified domain name of your host (if available).
Please specify a valid e-mail address as your remote password even if you "privately" mirror Sparemint so that we have a chance to contact you in case you unintentionally disturb the maintainance of this site with your mirroring activities.
Please avoid office hours in Europe for private mirroring.
package=sparemint
remote_password=your_email_address
remote_dir=/pub/sparemint
site=wh58-508.st.uni-magdeburg.de
local_dir=YOUR_DIR
update_log=YOUR_LOGFILE
exclude_patt=.*~|^expired|.*core$|#.*#$|.*\.tmp$|^LOP$
make_bad_symlinks=false
save_deletes=false
do_deletes=true
recursive=true
mirror -n -d /etc/mirror.sparemint | lessYou may repeat the option
-d
up to four times
thus increasing the amount of debugging information. The option -n
inhibits actual retrieval of the files. The mirror program only
displays what it would do. As soon as the program
works as supposed to you should add a cron job for it (of course you
should remove the options -d -n
then).
Another caveat of the mirror program in general is that you cannot easily see which site you actually mirror. RedHat Software suggests the following patch to mirror:
--- mirror.old Fri Feb 27 09:22:20 1998
+++ mirror Fri Feb 27 09:47:59 1998
@@ -866,7 +866,10 @@
local( $key, $val, $str );
&msg( $msg );
- &msg( "package=$package $site:$remote_dir -> $local_dir\n\t" );
+ $HOSTNUM = gethostbyname($site);
+ @HOSTNAME = unpack('C4',$HOSTNUM);
+ $HOSTNAME = join('.',@HOSTNAME);
+ &msg( "package=$package $site($HOSTNAME):$remote_dir -> $local_dir\n\t);
for $key (sort keys( %value ) ){
next if $key eq 'package' ||
@@ -941,7 +944,10 @@
&pr_variables( "\n" );
}
elsif( $package %% ! $pretty_print ){
- &msg( "package=$package $site:$remote_dir -> $local_dir\n");
+ $HOSTNUM = gethostbyname($site);
+ @HOSTNAME = unpack('C4',$HOSTNUM);
+ $HOSTNAME = join('.',@HOSTNAME);
+ &msg( "package=$package $site($HOSTNAME):$remote_dir -> $local_dir\n\t);
}
# Don't bother if trying to mirror here!
It is currently not possible to use rsync to mirror Sparemint. If this
is an issue for you please contact
the Sparemint team.
Please contact Guido Flohr <guido(at)freemint.de> for corrections or suggestions.