chiark / gitweb /
@@ -1,8 +1,9 @@
[chiark-utils.git] / backup / full
index 9c603b9affbf80b9cd75b4f1b6cbbd557388d04e..d4e5fcacd226599b8881c9abc48d41b89b51ea15 100755 (executable)
@@ -222,6 +222,9 @@ for $tf (@fsys) {
         $dumpin = '<&FINDOR';
     } elsif ($tm eq 'ntfsimage') {
        $dumpcmd= "ntfsimage -svvf --dirty $dev";
+    } elsif ($tm eq 'gtar') {
+       execute("$rstr touch $fsidfile+new");
+       $dumpcmd= "tar Ccfl $atf - .";
     } else {
        die "unknown method $tm for $prefix:$atf\n";
     }
@@ -251,6 +254,10 @@ for $tf (@fsys) {
     $totalrecords += $1;
     pboth("total blocks written so far: $totalrecords\n");
 
+    if ($tm eq 'gtar') {
+       execute("$rstr mv -f $fsidfile+new $fsidfile");
+    }  
+    
     finfsys();
 }