# autocdbackup.conf # configuration file for autocdbackup.sh CDRW backup script #===================== # Platform definition #===================== # Used to determine what type of pipes can be used. # In Windows/Cygwin, tar can't pipe directly to gzip. # Set to 1 if using Cygwin # 0 if other *NIX OS CYGWIN=0 # GZ compression flag # Set to 1 to use gzip to compress tar archive in Cygwin # 0 to just archive using tar TARGZ=1 #==================== # CDRW Configuration #==================== # The CDRW variable adds support for non CDRW drives. Turns on/off disc erase. # Set to 0 for CDR # 1 for CDRW CDTYPE=1 # To determine your CD_DEV, run cdrecord -scanbus CD_DEV=0,3,0 CD_SPEED=8 #===================================== # Source and Destination declarations #===================================== # *NIX folder references ISO_DIR=/tmp/ISO ISO_FILE=currentBackup.iso ISOSRC_DIR=/tmp/ISOSRC ISOSTATIC_DIR=/tmp/ISOSTATIC # Cygwin folder references #ISO_DIR=/cygdrive/c/ISO #ISO_FILE=currentBackup.iso #ISOSRC_DIR=/cygdrive/c/ISOSRC #ISOSTATIC_DIR=/cygdrive/c/ISOSTATIC # The ISO static directory can contain any files that you want to # be put on ALL the backups that are created. This can be anything # from a simple Windows autorun program to any utilities needed to # read the data on the backup #============================== # Declare default return value #============================== RETVAL=0 #=============================================== # Declare and define what we're going to backup #=============================================== declare -a archives declare -a archive_src archives[0]="test.tar" archive_src[0]="/tmp/test" #archives[1]="adobe.tar" #archive_src[1]="/shares/downloads/Adobe"