cleanup, clarification and outfile

This commit is contained in:
kneutron 2021-04-09 13:24:16 -05:00 committed by GitHub
parent b007a823bc
commit 1bf72afb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;