ansitest/VIRTBOX/mkrestoredvdiso.sh

38 lines
773 B
Bash
Raw Normal View History

2021-04-09 05:46:27 -05:00
#!/bin/bash
# Linux version
2021-04-09 13:24:16 -05:00
# 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
2021-04-09 05:46:27 -05:00
2021-04-09 13:24:16 -05:00
# xxx TODO editme
user=dave
outfile=/home/$user/restoreUDF.iso
# This is where the fsarchive backup and restore script lives, pass as parm
2021-04-09 05:46:27 -05:00
d2b="$1"
cd "$d2b"
ls -alh
pwd
2021-04-09 13:24:16 -05:00
echo "Creating UDF ISO from $d2b ..." #PK:
2021-04-09 05:46:27 -05:00
#read
# how big willit be
mkisofs -d -D -f -l -J -N -r -T -v -print-size *
echo Sawright?
#read
time \
mkisofs -allow-lowercase -apple -d -D -f -l -J -joliet-long -max-iso9660-filenames -N -r -R -T -udf -v \
2021-04-09 13:24:16 -05:00
-o $outfile *
2021-04-09 05:46:27 -05:00
chown $user $outfile
2021-04-09 13:24:16 -05:00
chmod a+rx $outfile
2021-04-09 05:46:27 -05:00
2021-04-09 13:24:16 -05:00
ls -lh /home/$user/*.iso
2021-04-09 05:46:27 -05:00
exit;
# 2021 Dave Bechtel