annotate cd-backup.sh @ 11:e15c393dffa8

added pipelined encryption layer.
author Robert McIntyre <rlm@mit.edu>
date Mon, 25 Feb 2013 15:34:01 +0000
parents e736b9aaf5ad
children
rev   line source
rlm@6 1 #!/bin/sh
rlm@6 2
rlm@6 3 TARGET="/home/r/tmp/image.iso"
rlm@6 4
rlm@7 5 #START=`cdrecord -msinfo`
rlm@6 6
rlm@7 7 #echo "$START"
rlm@6 8
rlm@6 9 GRAFT_POINTS=''
rlm@6 10
rlm@6 11 for var in "$@"
rlm@6 12 do
rlm@6 13 GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\""
rlm@6 14 done
rlm@6 15
rlm@6 16
rlm@6 17 #echo $GRAFT_POINTS
rlm@6 18
rlm@7 19 #if [ "$START" == "0,0" ]; then
rlm@6 20 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS"
rlm@7 21 # echo $COMMAND
rlm@7 22 # eval $COMMAND
rlm@7 23 #else
rlm@7 24 # COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \
rlm@7 25 # -C $START -o $TARGET -graft-points $GRAFT_POINTS"
rlm@6 26 echo $COMMAND
rlm@8 27 # eval $COMMAND
rlm@7 28 #fi
rlm@6 29
rlm@6 30
rlm@6 31 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."
rlm@6 32
rlm@6 33 #cd-burn