]>
git.wh0rd.org - dump.git/blob - examples/dump_on_remote_cd/get-dumpdata-to-cdrecord
2 #ident "@(#) get-dumpdata-to-cdrecord Time-stamp: <02/05/06 13:49:28 bav> "
3 #******************************************************************
4 # get-dumpdata-to-cdrecord
5 #******************************************************************
6 # Gerd Bavendiek bav@epost.de 02-05-02
8 # This script runs on the box which has the CD-Burner. It starts an
9 # rsh on the box where dump is started and feeds the data to
10 # cdrecord. You should have copied it to
11 # PATH_TO_GET_DUMPDATA_TO_CDRECORD, see script dump-to-remote-cd.
13 # You definitely may wish to customize the cdrecords arguments below !
15 # If rsh is not appropiate for you, change to ssh.
16 #------------------------------------------------------------------
18 CDRECORD_TESTMODE
="" # This means: burn !
19 ###CDRECORD_TESTMODE="-dummy" # and this: not really ...
20 CDRECORD_DEVICE
="1,0" # Run cdrecord --scanbus if in doubt
21 CDRECORD_SPEED
=2 # Speed of your burner
22 CDRECORD_BUFFERSIZE
=16m
# Buffersize in MByte
24 #------------------------------------------------------------------
27 echo >&2 "Usage: `basename $0` -d <dump_host> -f <fifo_name>"
31 CDRECORD_ARGLIST
="-v $CDRECORD_TESTMODE dev=$CDRECORD_DEVICE speed=$CDRECORD_SPEED fs=$CDRECORD_BUFFERSIZE"
33 while getopts "d:f:h" c
; do
38 f
) # name of the fifo cdrecord has to read the data from
41 h
) # help those who ask for help
44 '?') # any other switch
50 if [ -z "$DUMP_HOST" -o -z "$FIFO_NAME" ]; then Usage
; fi
52 rsh $DUMP_HOST dd if=$FIFO_NAME | cdrecord
$CDRECORD_ARGLIST -eject -pad -data -
54 echo $0: `date '+%T'`: ERROR
: Check cdrecords messages
59 # rcpbuf-todo: ("/[root@kiki]/root/tools")