On 22 Jan 2004 at 14:03, Dr. Jürgen Vollmer wrote:
On 21 Jan 2004 at 16:44, Dr. Jürgen Vollmer wrote:
hat jemand hier Erfahrungen mit einem SCSI DDS Tape-Library?
"Daniel Bauer"
habe hier eine 6-fach Lib DDS3 von HP am laufen und kann mich nicht beklagen, die Scripte dazu habe ich selbst geschrieben und arbeite mit mtx und afio.
Kann ich diese Skripte bekommen? Wäre echt nett.
Klar doch, sind nix besonderes .... Gruß Daniel und Sorry fürs Attachment! The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: gzip-excludes.txt Date: 23 Jan 2004, 8:31 Size: 215 bytes. Type: Text #!/bin/sh # ------------------------------------------------------------------------------ # Auswertung der Bandkennung die mittels afio gesichert wurden # # (c) 2003, Daniel Bauer, dbauer@dsb-gmbh.de clear # ------------------------------------------------------------------------------ # Label ausgeben echo -n "Sicherung: " cat - echo "Label: $1" echo # ------------------------------------------------------------------------------ # Benutzerabfrage fuer Verwendung # j: Kontrolle wird an afio uebergeben echo -n "Soll dieses Archiv zum Restore genutzt werden? j/n: " read jn <&1 echo if [ "$jn" != "j" ] then kill $PPID fi #!/bin/sh # ------------------------------------------------------------------------------ # Restore von Dateien mittels afio # # (c) 2003, Daniel Bauer, dbauer@dsb-gmbh.de clear # ------------------------------------------------------------------------------ # Vorbelegungen DirExe=/script/m-server/afio-backup DirLog=/var/log/backup DAT=/dev/st0 DLT=/dev/st1 case "$4" in DAT) BandLW=$DAT BandCtrl=changer.sh ;; DLT) BandLW=$DLT BandCtrl=change-manuell.sh ;; *) echo echo "Ungültige Auswahl: $2" echo echo "Möglich sind: DAT, DAT Laufwerk $DAT" echo " DLT, DLT Laufwerk $DLT" kill $PPID ;; esac # ------------------------------------------------------------------------------ # Label ausgeben echo "Art: $1" echo "Datum: $2" echo "Dateien fuer Restore: $3" echo "Bandlaufwerk: $BandLW" echo echo -n "Angaben korrekt? j/n: " read jn <&1 echo if [ "$jn" != "j" ] then kill $PPID fi # ------------------------------------------------------------------------------ # Restore von Band beginnen echo -n "Bandrestore, Start: " date afio -ivuxBZ -G 6 -M 128m -y $3 -D $DirExe/afio-control-strip.sh -L $DirLog/restore.$1.$2.txt -H $DirExe/$BandCtrl $BandLW echo -n "Bandrestore, Stop: " date cat $DirLog/restore.$1.$2.txt | mail -s $1'-Restore vom '$2 admin@dsb-gmbh.de -- -frestore@dsb-gmbh.de #!/bin/sh # ------------------------------------------------------------------------------ # Changerbetaetigung fuer Backup-Script # # (c) 2003, Daniel Bauer, dbauer@dsb-gmbh.de # ------------------------------------------------------------------------------ # Vorbelegungen DIR=/script/m-server/afio-backup BandLW=/dev/st0 # ------------------------------------------------------------------------------ # Auswahl des naechsten Bandes if ! cat $DIR/band.1 1>/dev/null 2>/dev/null then UNLOAD=1 LOAD=2 else if ! cat $DIR/band.2 1>/dev/null 2>/dev/null then UNLOAD=2 LOAD=3 else if ! cat $DIR/band.3 1>/dev/null 2>/dev/null then UNLOAD=3 LOAD=4 else if ! cat $DIR/band.4 1>/dev/null 2>/dev/null then UNLOAD=4 LOAD=5 else UNLOAD=5 LOAD=1 fi fi fi fi # ------------------------------------------------------------------------------ # Changerbetaetigung echo case "$1" in load) echo -n "Lade Band $UNLOAD in $BandLW " date mtx -f $BandLW load $UNLOAD sleep 10 ;; unload) rm $DIR/band.$LOAD touch $DIR/band.$UNLOAD echo -n "Enlade Band $UNLOAD aus $BandLW " date mtx -f $BandLW unload $UNLOAD sleep 10 ;; *) rm $DIR/band.$LOAD touch $DIR/band.$UNLOAD echo -n "Enlade Band $UNLOAD aus $BandLW, lade Band $LOAD in $BandLW " date mtx -f $BandLW unload $UNLOAD sleep 10 mtx -f $BandLW load $LOAD sleep 10 ;; esac The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: afio-backup.sh Date: 23 Jan 2004, 8:31 Size: 12294 bytes. Type: Unknown