2 Sep
2002
2 Sep
'02
05:39
Am trying to get Cron to run this backup script. What, please, is wrong with this ? :- ../sysbak: line 8: syntax error near unexpected token `{}' ./sysbak: line 8: `exec tar clf - . | ( umask 0; cd /mnt; tar xvf - ) {} \;
/dev/null 2>&1'
........................ this is what the whole script is :- ................................. #!/bin/sh # # use tar to clone /hda7 to /dev/hda6 # mount /dev/hda6 /mnt df cd / exec tar clf - . | ( umask 0; cd /mnt; tar xvf - ) {} \; >/dev/null 2>&1 cd cp /mnt/etc/fstab.orig /mnt/etc/fstab df umount /mnt cd .............................................................. thanks :) best wishes ____________ sent on Linux ____________