chiark / gitweb /
Merge Peter Maydell's changes.
[chiark-utils.git] / backup / settings.pl
index 5e9c5d5b11df5d1bad14b1ce8cd25758cbb8dcca..a550206ffd8141f01d69b7e6bf21ba440c9254cd 100644 (file)
@@ -1,8 +1,14 @@
 #
 chdir '/var/local/backup' or die $!;
 push(@INC,'/usr/local/lib/backup');
-$ENV{'PATH'}= '/usr/local/lib/backup:/usr/local/bin:'.$ENV{'PATH'};
 $ENV{'PATH'} =~ s,^/usr/local/lib/backup:/usr/local/bin:,,;
+$ENV{'PATH'}= '/usr/local/lib/backup:/usr/local/bin:'.$ENV{'PATH'};
+
+# This sets both blocksizes to 512b. 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= 1;
 $blocksizebytes= 512*$blocksize;
 $softblocksizekb= 1;