X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=backup%2Fincrem;h=b50f50e8c9040d93475a1e8b8edcd455ca2f100a;hb=e912e652c5a4d03307b47a209baa6dec5877ae45;hp=57a037dc31cadce80345a60b3cc5395a24a6563e;hpb=374871b6f1b7b7cba5daa62c28c55d1481009aa2;p=chiark-utils.git diff --git a/backup/increm b/backup/increm index 57a037d..b50f50e 100755 --- a/backup/increm +++ b/backup/increm @@ -88,6 +88,7 @@ setstatus "PROBLEMS during incremental dump"; for $tf (@fsys) { parsefsys(); + prepfsys(); $bufir='DUMPOR'; $ddcmd= "$nasty dd ibs=$softblocksizebytes obs=$blocksizebytes of=$ntape"; @@ -104,9 +105,10 @@ for $tf (@fsys) { if ($tm eq 'dump') { $dumpcmd= "dump 1bfu $softblocksizekb - $atf"; + } elsif ($tm eq 'gtar') { + $dumpcmd= "tar NCcfl $fsidfile $atf - ."; } else { - print "Not dumping $atf ($prefix) - not \`dump'.\n" or die $!; - print LOG "Not dumping $atf ($prefix) - not \`dump'.\n" or die $!; + pboth("Not dumping $atf ($prefix) - not supported.\n"); next; } @@ -126,6 +128,8 @@ for $tf (@fsys) { # advance is a file counter, so it needs to be updated for each # dump we do to tape. $advance++; + + finfsys(); } # Rewind the tape, and increment the counter of incremental backups.