Script to backup system for Full backup Weekely backup Incremental backup #cd /etc/crown.daily created a script eith name backup.cron #vi backup.cron #!/bin/sh #Full and incremental backup script COMPUTER=HPUXTEST # name of this computer DIRECTORIES="/vtest" # directoris to backup BACKUPDIR=/voulme10 # where to store the TIMEDIR=/volume10/last-full # where to store time of full backup TAR=/bin/tar # name and locaction of tar PATH=/usr/local/bin:/usr/bin:/bin DOW=`date +%a` # Day of the week e.g. Mon DOM=`date +%d` # Date of the Month e.g. 27 DM=`date +%d%b` # Date and Month e.g. 27Sep # On the 1st of the month a permanet full backup is made # Every thusday a full backup is made - overwriting last thusday backup # The rest of the time an incremental backup is made. Each incremental # backup overwrites last weeks incremental backup of the same name. # # if NEWER = "", then tar backs up all files in the directories # otherwise it backs up files newer than the NEWER date. NEWER # gets it date from the file written every thusday. # Monthly full backup if [ $DOM = "01" ]; then NEWER="" $TAR $NEWER -cf $BACKUPDIR/$COMPUTER-$DM.tar $DIRECTORIES fi # Weekly full backup if [ $DOW = "Thu" ]; then NEWER="" NOW=`date +%d-%b` # Update full backup date echo $NOW > $TIMEDIR/$COMPUTER-full-date $TAR $NEWER -cf $BACKUPDIR/$COMPUTER-$DOW.tar $DIRECTORIES # Make incremental backup - overwrite last weeks else # Get date of last full backup NEWER="--newer `cat $TIMEDIR/$COMPUTER-full-date`" $TAR $NEWER -cf $BACKUPDIR/$COMPUTER-$DOW.tar $DIRECTORIES fi and i change the permissions to read write and execute to owner #chmod 755 bachup.cron abd executed the script I am getting the following error as output: HPUXTEST #./backup.cron tar: n: unknown option tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ... can u please check the script and help me thanks