Re: Working star backup script

"Zoran Ljubisic" <[email protected]> Thu, 3 Nov 2005 13:41:38 +0100
Newsgroups gmane.comp.archivers.star.user
Message-ID <005e01c5e073$f6db1160$fd01a8c0@zoran>
Joerg Schilling wrote:
> "Zoran Ljubisic" <[email protected]> wrote:
>
> It is unfortunately non portable:

I have only Suse 9.3 so I can't say about other OS-s.

> - The script is neither compliant with /bin/sh nor
> with the POSIX shell (ksh93).
>
> e.g. "function checkfor()"  is not accepted by
> either sh or ksh.

If you say so.

> - mt has no option --version

Suse has this option.

>
> - mt has no function "eod"

Suse has eod and eom also.

> - date has no option --iso-8601=sec

In Suse it works.

> And please note: this script creates a "standard" tar archive
> but nothing that could be called a "backup".

Can you elaborate why?

> If you like to "backup" things, you should use the -dump or
> level=xxx option. Then star puts more into the archive....

Why it is not enough to backup only with star command as mentioned in
script?

> It may make sense if I did publish some of my scripts as a base
> for a discussion.

Please do so.

As you can se, Joerg H. find out really simple way to put dirs to backup and 
dirs to exclude in string and than from this string it creates proper values 
into star command. No need for "match" you mentioned before.

Zoran