chiark / gitweb /
From Peter Maydell (/u2/pmaydell/iwjbackup/) as per <E156bwm-0005xq-00@watchdragon...
[chiark-utils.git] / backup / settings.pl
index 5e9c5d5b11df5d1bad14b1ce8cd25758cbb8dcca..4cef23f5f67beadf0e861333461c7982e8beeffc 100644 (file)
@@ -1,11 +1,17 @@
 #
 chdir '/var/local/backup' or die $!;
 push(@INC,'/usr/local/lib/backup');
+# huh? AFAICT this adds two entries to the PATH and 
+# promptly removes them again??? -- PMM
 $ENV{'PATH'}= '/usr/local/lib/backup:/usr/local/bin:'.$ENV{'PATH'};
 $ENV{'PATH'} =~ s,^/usr/local/lib/backup:/usr/local/bin:,,;
-$blocksize= 1;
+# This sets both blocksizes to 10K. Note that both must be the
+# same if using the zftape floppy tape driver, since that requires
+# blocks to be the right size, but dd with the obs=10k option
+# doesn't pad the final block to the blocksize...
+$blocksize= 20;    # was 1 -- PMM
 $blocksizebytes= 512*$blocksize;
-$softblocksizekb= 1;
+$softblocksizekb= 10; # was 1 -- PMM
 $softblocksizebytes= 1024*$softblocksizekb;
 $tapename= 'st0';
 $tape= "/dev/$tapename";