Re: multiple prerun commands?

Miek Gieben <[email protected]> Mon, 27 Sep 2004 09:02:34 +0200
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 26 Sep, @ 18:12, tom wrote in "[hdup-user] multiple prerun co ..."]
> Hi all, I have hdup mounting and unmounting a partition to do backups
> on to with the 'prerun' and 'postrun' settings, and it works great.
> 
> Some backups are large however, and I'd like to have hdup rm some of
> the old backups before attempting another, as the new ones fail w/o
> enough HD space.
> 
> I tried seperating the two commands with both ';' as per the shell and
> ',' like in include/exclude paths, but I couldn't get either to work.

there is no magic parsing for these keywords - it is all passed to the
system() call.

> Has anyone done this before? How did you get it to work?

I think that making a new pre-run script that does the checking for
you is the way to go. So in stead of:

prerun = bla1 ; bla2

you get:

superbla.sh:
#!/bin/sh

bla1
bla2

and:

prerun = superbla

that must surely work :)

grtz Miek