06.12.2012 Aufrufe

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

B.25 Backup/backup-to-storage 314<br />

mt -f $TAPE off<br />

echo finished backup: `date`<br />

B.25 Backup/backup-to-storage<br />

#!/bin/sh<br />

storage_area=/home1/backups<br />

rsync="rsync -aruHlpogDx --stats -v --force --delete -e ssh"<br />

mkdir -p $storage_area/smaug<br />

$rsync smaug:/ $storage_area/smaug<br />

$rsync smaug:/disk1$storage_area/smaug<br />

$rsync smaug:/disk2$storage_area/smaug<br />

$rsync smaug:/disk3\<br />

--exclude '/disk3/swapfile' \<br />

--exclude '/disk3/lost+found/*' \<br />

--exclude '/disk3/backups/*' \<br />

--exclude '/disk3/sandbox/*' \<br />

--exclude '/disk3/sharky-usr_tmp_pkgsrc/*' \<br />

--exclude '/disk3/var_crash/*' \<br />

$storage_area/smaug<br />

B.26 Monitoring/Makefile<br />

##########################################################################<br />

# The contents of this file are (c) Copyright 1996 by <strong>Hubert</strong> <strong>Feyrer</strong>.<br />

# Any use of the knowledge stored in this file may not be used outside<br />

# of the Fachhochschule Regensburg without contacting me first.<br />

###########################################################################<br />

CC = gcc<br />

CFLAGS =<br />

###########################################################################<br />

all: stat.ps nkill ftpd-kill<br />

#####<br />

stat.ps: stat.out<br />

perl5 stat.plot > $$$$ ; gnuplot $$$$ ; rm $$$$<br />

stat.out:<br />

sh stat | tee stat.out<br />

#####<br />

nkill: nkill.o wildmat_code.o<br />

$(CC) $(CFLAGS) nkill.o wildmat_code.o -o nkill<br />

nkill.o: nkill.c<br />

$(CC) $(CFLAGS) -c nkill.c<br />

wildmat_code.o: wildmat_code.c<br />

$(CC) $(CFLAGS) -c wildmat_code.c<br />

#####<br />

ftpd-kill: ftpd-kill.c<br />

$(CC) $(CFLAGS) ftpd-kill.c -o ftpd-kill<br />

#####<br />

clean:<br />

-rm -f nkill.o wildmat_code.o<br />

(c) 1996-2003 <strong>Hubert</strong> <strong>Feyrer</strong> Stand: 21. Oktober 2003

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!