On 14.01.2011 12:50, Adrian Levi wrote:
I know where the error lies but not how to fix it.

zparameters="a -mhe=on -pd1ckhead -t7z -m0=lzma -mx=9 -mfb=64 -md=32m
-ms=on -si"
zfilename="Daily Backup - $(date +"%a %h %H%M %d-%m-%Y").$backuplevel.tar.7z"

When these two expand here:

tar $tarparameters $backuppath | 7z $zparameters $zfilename

I end up with all of the terms but the $zfilename still needs quoting
somehow as it contains spaces, how do you fix that or do I have to
escape all of the spaces with back ticks?

All the help so far has been great.

Adrian

I suggest reading:

http://tldp.org/LDP/abs/html/
http://tiswww.case.edu/php/chet/bash/FAQ
http://mywiki.wooledge.org/BashFAQ

best regards

mart


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d303c45.5050...@chello.at

Reply via email to