mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
cleanup, clarification and outfile
This commit is contained in:
parent
b007a823bc
commit
1bf72afb2e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user