#/bin/sh ########################################################################################## # makedvd # # shellscript to backup data onto DVD-R under linux # worked with a TOSHIBA DVD-ROM SD-R5002 (a sub 100 dollar DVD-burner) # on a Dell box running Linux Mandrake 9.1, where # mkisofs-2.0-2mdk.i586.rpm and cdrecord-2.0-2mdk.i586.rpm were installed. # # prepair: # - get cdrecord_prodvd (the version number might have change): # wget ftp://ftp.berlios.de/pub/cdrecord/ProDVD/cdrecord-prodvd-2.01a12-i586-pc-linux-gnu # wget ftp://ftp.berlios.de/pub/cdrecord/ProDVD/cdrecord-wrapper.sh # mv cdrecord-prodvd-2.01a12-i586-pc-linux-gnu cdrecord-ProDVD # - check dev= argument with 'cdrecordpro --scanbus' and modify dev=*,*,* accordingly # in the second last line below # # install: # - throw the three files cdrecord-ProDVD, cdrecord-wrapper.sh, makedvd into /usr/bin # and adjust their permissions # # usage: # - to backup a directory "backupdir" containing less then 4.1 gig, type # makedvd backupdir # at the commandline # O.Knill, 2003 ########################################################################################## mkisofs -r -d -o dvdimage.iso $1 cdrecord-wrapper.sh -eject -v speed=4 dev=1,1,0 dvdimage.iso rm dvdimage.iso