[linux-support] Shellscriptfragen

Thomas Deutsch thomas_mailinglisten at tuxpeople.org
Fri Sep 17 18:22:37 CEST 2004


Hallo zusammen

Ich versuche gerade was zu basteln, aber das funzt noch nicht ganz:

cd /home && for i in 'ls' do; tar -czvf /data/backup/homes/$i-$(date 
+%Y%m%d).tar.gz $i; done

Ziel ist, dass das Script nach /home wechselt, und aus jedem Order da ein 
einzelnes tar.gz macht. Also nicht einfach alle zusammen in einem File.

Leider bekomme ich immer die Fehlermeldung bash: syntax error near 
unexpected token 'tar'

Was ist da falsch?

mfg

Thomas

-- 
My gpg-Key (#0C662768) is avaible at wwwkeys.ch.pgp.net or 
http://www.tuxpeople.org/~thomas/key.asc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.lugbe.ch/vpipermail/linux-support/attachments/20040917/bda913c0/attachment.bin


More information about the Linux-support mailing list