Mailinglist Archive: opensuse (3254 mails)

< Previous Next >
BackUp shell script ~ trying to suppress huge e-mail report to root
  • From: tabanna <tabanna@xxxxxxxxxxxxxxx>
  • Date: Mon, 2 Sep 2002 05:39:49 +0000
  • Message-id: <200209020525.09879.tabanna@xxxxxxxxxxxxxxx>

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

____________


< Previous Next >
This Thread
  • No further messages