Re: virtual-tape directory error

Jan Cermak <[email protected]> Wed, 08 Dec 2004 07:34:56 +0100
Newsgroups gmane.comp.sysutils.backup.sarab
Message-ID <[email protected]>
Joergen Recke wrote:
 > Hello Tristan,
 >
 >> That should update SaraB, and please test it to verify it works.
 >
 > I applied your patch and - sad to say that - still have the same
 > problem. 1 hunk was rejected - the one with the email subject
 > patch i applied manually some days ago. I also verified that no
 > "cut" command was left inside sarab.sh.
 >
 > Sarab still doesnt understand the second argument per line in the
 > rotation.schedule
 >
 > Output is as follows:
 > Top line of rotation.schedule: differential11 full1
 > Number of fields: 2
 > Creating a full-backup on the virtual-tape named:
 > differential11 full1
 >
 > Thanks anyway,
 > Joergen.


Hello all,

I ran across a very similar problem last night before I realized 
there had been discussion about this already. In my case, too, I 
could not run differential backups as shown above.

In order for reference archives to be recognized as such by the 
script the following lines need to be changed in sarab.sh:

line 166:
OLD: if [ "$NUM_FIELDS" -gt "2" ]; then
NEW: if [ $NUM_FIELDS -gt 2 ]; then

line 172:
OLD: if [ "$NUM_FIELDS" = "2" ]; then
NEW: if [ $NUM_FIELDS = 2 ]; then

The second change is the more important one. In the old version, 
NUM_FIELDS was evaluated as a string, which isn't the desired 
effect. With the new version, differential backups work fine for me.

All the best,
Jan





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/