[Wylug-help] Sh problem

Anne Wilson cannewilson at googlemail.com
Thu Apr 17 11:13:51 BST 2008


I finally got gpg sorted late last night.  Now I'm trying to set up backups, 
using an ubuntu-eeepc guide to get me started.  It seems, though, that I have 
an error in my script, and can't spot it:

/home/user/EeePC_systemBackup.sh: line 3: syntax error near unexpected token 
`('
/home/user/EeePC_systemBackup.sh: line 3: `tar 
cvpzf /media/USB%20Flash%20Memory/partition1/EeePC(date 
+%F).tar.gz --exclude=/media* --exclude=/proc/* --exclude=/lost+found/* --exclude=/mnt/* --exclude=/sys/* --exclude=/home.* /'

Here is the actual script:
sudo /bin/bash
cd /
tar cvpzf /media/USB%20Flash%20Memory/partition1/EeePC(date 
+%F).tar.gz --exclude=/media* --exclude=/proc/* --exclude=/lost+found/* --exclude=/mnt/* --exclude=/sys/* --exclude=/home.* /

It looks as though it's something to do with the date parameter,but (date +%F) 
is all on one line, not as it shows here.

Anne



More information about the Wylug-help mailing list