diff --git a/VIRTBOX/mkrestoredvdiso.sh b/VIRTBOX/mkrestoredvdiso.sh index 21ffbda..ae9d5bb 100644 --- a/VIRTBOX/mkrestoredvdiso.sh +++ b/VIRTBOX/mkrestoredvdiso.sh @@ -1,16 +1,21 @@ #!/bin/bash # Linux version -# make a restore DVD from .fsarchive + restore script(s) +# make a restore DVD from .fsarchive bare-metal backup + restore script(s): RESTORE-fsarchive-root.sh // and/or to-XFS version +# mount the resulting ISO in a systemrescuecd environment on 2nd dvd drive -# Destination dir +# xxx TODO editme +user=dave +outfile=/home/$user/restoreUDF.iso + +# This is where the fsarchive backup and restore script lives, pass as parm d2b="$1" cd "$d2b" ls -alh pwd -echo "Creating ISO from $d2b..." #PK: +echo "Creating UDF ISO from $d2b ..." #PK: #read #mkisofs -r -f -U -v -o - * \ @@ -22,15 +27,15 @@ echo Sawright? time \ mkisofs -allow-lowercase -apple -d -D -f -l -J -joliet-long -max-iso9660-filenames -N -r -R -T -udf -v \ - -o /home/restoreUDF.iso * + -o $outfile * # | cdrecord -v -tao fs=5120k -eject speed=32 -data - # | cdrecord -v -tao fs=5120k -eject speed=$CDR_SPEED -data - #dev=1,0,0 -chown dave /home/restoreUDF.iso -chmod a+rx /home/restoreUDF.iso +chown dave $outfile +chmod a+rx $outfile -ls -lh /home/*.iso +ls -lh /home/$user/*.iso exit;