Mercurial > backup
changeset 6:dc7c9557d412
correct references, rename.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 25 Feb 2013 09:26:19 +0000 |
parents | 4323b5a2fb6b |
children | 11334e7aed98 |
files | burn-tmp-iso-image.sh cd-backup cd-backup.sh cd-burn cd-mount.sh readme.txt |
diffstat | 5 files changed, 42 insertions(+), 43 deletions(-) [+] |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/burn-tmp-iso-image.sh Mon Feb 25 09:26:19 2013 +0000 1.3 @@ -0,0 +1,7 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +TARGET=/home/r/tmp/image.iso 1.7 + 1.8 +cdrecord -multi -v gracetime=3 -overburn -data "$TARGET" 1.9 + 1.10 +rm $TARGET
2.1 --- a/cd-backup Mon Feb 25 09:20:14 2013 +0000 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,33 +0,0 @@ 2.4 -#!/bin/sh 2.5 - 2.6 -TARGET="/home/r/tmp/image.iso" 2.7 - 2.8 -START=`cdrecord -msinfo` 2.9 - 2.10 -echo "$START" 2.11 - 2.12 -GRAFT_POINTS='' 2.13 - 2.14 -for var in "$@" 2.15 -do 2.16 - GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\"" 2.17 -done 2.18 - 2.19 - 2.20 -#echo $GRAFT_POINTS 2.21 - 2.22 -if [ "$START" == "0,0" ]; then 2.23 - COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" 2.24 - echo $COMMAND 2.25 - eval $COMMAND 2.26 -else 2.27 - COMMAND="mkisofs -iso-level 4 -rJT -M /dev/dvd \ 2.28 - -C $START -o $TARGET -graft-points $GRAFT_POINTS" 2.29 - echo $COMMAND 2.30 - eval $COMMAND 2.31 -fi 2.32 - 2.33 - 2.34 -echo "files copied to $TARGET. use 'cd-burn' to burn it." 2.35 - 2.36 -#cd-burn 2.37 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/cd-backup.sh Mon Feb 25 09:26:19 2013 +0000 3.3 @@ -0,0 +1,33 @@ 3.4 +#!/bin/sh 3.5 + 3.6 +TARGET="/home/r/tmp/image.iso" 3.7 + 3.8 +START=`cdrecord -msinfo` 3.9 + 3.10 +echo "$START" 3.11 + 3.12 +GRAFT_POINTS='' 3.13 + 3.14 +for var in "$@" 3.15 +do 3.16 + GRAFT_POINTS="$GRAFT_POINTS \"`basename "$var"`\"=\"$var\"" 3.17 +done 3.18 + 3.19 + 3.20 +#echo $GRAFT_POINTS 3.21 + 3.22 +if [ "$START" == "0,0" ]; then 3.23 + COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" 3.24 + echo $COMMAND 3.25 + eval $COMMAND 3.26 +else 3.27 + COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \ 3.28 + -C $START -o $TARGET -graft-points $GRAFT_POINTS" 3.29 + echo $COMMAND 3.30 + eval $COMMAND 3.31 +fi 3.32 + 3.33 + 3.34 +echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it." 3.35 + 3.36 +#cd-burn
4.1 --- a/cd-burn Mon Feb 25 09:20:14 2013 +0000 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,9 +0,0 @@ 4.4 -#!/bin/sh 4.5 - 4.6 -TARGET=/home/r/tmp/image.iso 4.7 - 4.8 - 4.9 -cdrecord -multi -v gracetime=3 -overburn -data "$TARGET" 4.10 - 4.11 - 4.12 -rm $TARGET 4.13 \ No newline at end of file